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_object.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_object.h')
-rw-r--r-- | source/blender/alembic/intern/abc_object.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/alembic/intern/abc_object.h b/source/blender/alembic/intern/abc_object.h index c5da84d3c2a..1462f93a422 100644 --- a/source/blender/alembic/intern/abc_object.h +++ b/source/blender/alembic/intern/abc_object.h @@ -169,6 +169,9 @@ public: const std::string & data_name() const { return m_data_name; } virtual bool valid() const = 0; + virtual bool accepts_object_type(const Alembic::AbcCoreAbstract::ObjectHeader &alembic_header, + const Object *const ob, + const char **err_str) const = 0; virtual void readObjectData(Main *bmain, const Alembic::Abc::ISampleSelector &sample_sel) = 0; |