[Bf-blender-cvs] [d41ad2fe008] temp-alembic-exporter-T73363-ms2: Alembic: when exporting flattened, always check parent for animation
Sybren A. Stüvel
noreply at git.blender.org
Thu May 7 17:39:54 CEST 2020
Commit: d41ad2fe0089de1fdab77732ad137fe74eb92223
Author: Sybren A. Stüvel
Date: Thu May 7 17:39:25 2020 +0200
Branches: temp-alembic-exporter-T73363-ms2
https://developer.blender.org/rBd41ad2fe0089de1fdab77732ad137fe74eb92223
Alembic: when exporting flattened, always check parent for animation
When exporting to a flattened "hierarchy", the animation of the parent
(in Blender) will not be known to the Alembic file. In this case,
whenever an object is moving, it needs to be treated as animated, even
when it's through the animation of its parent.
===================================================================
M source/blender/io/usd/intern/abstract_hierarchy_iterator.cc
===================================================================
diff --git a/source/blender/io/usd/intern/abstract_hierarchy_iterator.cc b/source/blender/io/usd/intern/abstract_hierarchy_iterator.cc
index 5d6695b5a5c..664b5319389 100644
--- a/source/blender/io/usd/intern/abstract_hierarchy_iterator.cc
+++ b/source/blender/io/usd/intern/abstract_hierarchy_iterator.cc
@@ -349,7 +349,7 @@ void AbstractHierarchyIterator::visit_object(Object *object,
context->export_parent = export_parent;
context->duplicator = nullptr;
context->weak_export = weak_export;
- context->animation_check_include_parent = false;
+ context->animation_check_include_parent = export_flattened_;
context->export_path = "";
context->original_export_path = "";
context->higher_up_export_path = "";
More information about the Bf-blender-cvs
mailing list