Skip to content

Commit

Permalink
[sfmDataIO] throw if we try to load an abc file and AliceVision is bu…
Browse files Browse the repository at this point in the history
…ilt without Alembic support

fix #890
  • Loading branch information
fabiencastan committed Sep 8, 2020
1 parent 69982f6 commit f7460b7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/aliceVision/sfmDataIO/sfmDataIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,15 @@ bool Load(sfmData::SfMData& sfmData, const std::string& filename, ESfMData partF
{
status = loadJSON(sfmData, filename, partFlag);
}
#if ALICEVISION_IS_DEFINED(ALICEVISION_HAVE_ALEMBIC)
else if(extension == ".abc") // Alembic
else if (extension == ".abc") // Alembic
{
AlembicImporter(filename).populateSfM(sfmData, partFlag);
status = true;
#if ALICEVISION_IS_DEFINED(ALICEVISION_HAVE_ALEMBIC)
AlembicImporter(filename).populateSfM(sfmData, partFlag);
status = true;
#else
ALICEVISION_THROW_ERROR("Cannot load the ABC file: \"" << filename << "\", AliceVision is built without Alembic support.");
#endif
}
#endif // ALICEVISION_HAVE_ALEMBIC
else if(fs::is_directory(filename))
{
status = readGt(filename, sfmData);
Expand Down

0 comments on commit f7460b7

Please sign in to comment.