diff options
author | Bastien Montagne <mont29> | 2020-10-28 13:04:49 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-10-28 13:05:25 +0300 |
commit | 0d772221c64187b5004dd687888042f44603257d (patch) | |
tree | c7922926915149104b021275e529d03f76ea6182 /source/blender/depsgraph/intern | |
parent | a8ca79cbe694ee7639343695d6367d30cb2ab589 (diff) |
Fix T82149: Blender crash when using collection user_id remapping (python).
Not sure why Collection was the only ID for which depsgraph building did
not check for potential recursion?
Reviewed By: sergey
Maniphest Tasks: T82149
Differential Revision: https://developer.blender.org/D9365
Diffstat (limited to 'source/blender/depsgraph/intern')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc index ec5cbc5c605..bac36885dfc 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc @@ -591,13 +591,13 @@ void DepsgraphRelationBuilder::build_collection(LayerCollection *from_layer_coll * recurses into all the nested objects and collections. */ return; } - build_idproperties(collection->id.properties); const bool group_done = built_map_.checkIsBuiltAndTag(collection); OperationKey object_transform_final_key(object != nullptr ? &object->id : nullptr, NodeType::TRANSFORM, OperationCode::TRANSFORM_FINAL); ComponentKey duplicator_key(object != nullptr ? &object->id : nullptr, NodeType::DUPLI); if (!group_done) { + build_idproperties(collection->id.properties); LISTBASE_FOREACH (CollectionObject *, cob, &collection->gobject) { build_object(cob->ob); } |