Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2017-04-28 14:48:00 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2017-04-28 16:33:57 +0300
commitaa88796a6cb6cb65b87508d87c51f1d58234f2ee (patch)
tree76c6d9c82636d4d36e07b76d20ea93e14aeaf49c /source/blender/alembic/intern/abc_camera.h
parent2e67a20045c00218b83f8a32957664ebc8cc7ecd (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_camera.h')
-rw-r--r--source/blender/alembic/intern/abc_camera.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/alembic/intern/abc_camera.h b/source/blender/alembic/intern/abc_camera.h
index 0201dd9d6e1..16c5cccd5ea 100644
--- a/source/blender/alembic/intern/abc_camera.h
+++ b/source/blender/alembic/intern/abc_camera.h
@@ -54,6 +54,9 @@ public:
AbcCameraReader(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);
};