diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-04-28 14:48:00 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-04-28 16:33:57 +0300 |
commit | aa88796a6cb6cb65b87508d87c51f1d58234f2ee (patch) | |
tree | 76c6d9c82636d4d36e07b76d20ea93e14aeaf49c /source/blender/alembic/intern/abc_transform.h | |
parent | 2e67a20045c00218b83f8a32957664ebc8cc7ecd (diff) |
Alembic: use object-oriented approach in ABC_read_mesh()
This is easier to extend than the if/else if/else chain that was in place,
and allows for somewhat more granular error messages.
Diffstat (limited to 'source/blender/alembic/intern/abc_transform.h')
-rw-r--r-- | source/blender/alembic/intern/abc_transform.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/alembic/intern/abc_transform.h b/source/blender/alembic/intern/abc_transform.h index f2e2edf8010..753a4247e9f 100644 --- a/source/blender/alembic/intern/abc_transform.h +++ b/source/blender/alembic/intern/abc_transform.h @@ -68,6 +68,9 @@ public: AbcEmptyReader(const Alembic::Abc::IObject &object, ImportSettings &settings); bool valid() const; + bool accepts_object_type(const Alembic::AbcCoreAbstract::ObjectHeader &alembic_header, + const Object *const ob, + const char **err_str) const; void readObjectData(Main *bmain, const Alembic::Abc::ISampleSelector &sample_sel); }; |