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@blender.org>2020-09-08 15:14:04 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-09-08 17:19:54 +0300
commitc0b4a93faedbbf53761fa86aafcc458f140700a2 (patch)
tree23bc7f92f9de60fc98ecd97d8cf3bd6d86440151 /source/blender/io/alembic/exporter/abc_hierarchy_iterator.h
parentab758c30d2ba46eabd9774951afaed52c8344855 (diff)
Cleanup: Alembic export, split function into two
Split the `ABCHierarchyIterator::create_data_writer()` function into two functions. This is to prepare for the creation of writers not just by object type, but also by goal, for example writers that reference other Alembic data instead of writing their own (i.e. instancing). No functional changes.
Diffstat (limited to 'source/blender/io/alembic/exporter/abc_hierarchy_iterator.h')
-rw-r--r--source/blender/io/alembic/exporter/abc_hierarchy_iterator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/io/alembic/exporter/abc_hierarchy_iterator.h b/source/blender/io/alembic/exporter/abc_hierarchy_iterator.h
index bd7e3f27c67..b8abfd74c4c 100644
--- a/source/blender/io/alembic/exporter/abc_hierarchy_iterator.h
+++ b/source/blender/io/alembic/exporter/abc_hierarchy_iterator.h
@@ -36,6 +36,7 @@ namespace blender {
namespace io {
namespace alembic {
+class ABCAbstractWriter;
class ABCHierarchyIterator;
struct ABCWriterConstructorArgs {
@@ -85,6 +86,9 @@ class ABCHierarchyIterator : public AbstractHierarchyIterator {
ABCWriterConstructorArgs writer_constructor_args(const HierarchyContext *context) const;
void update_archive_bounding_box();
void update_bounding_box_recursive(Imath::Box3d &bounds, const HierarchyContext *context);
+
+ ABCAbstractWriter *create_data_writer_for_object_type(
+ const HierarchyContext *context, const ABCWriterConstructorArgs &writer_args);
};
} // namespace alembic