diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-23 10:33:33 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-23 10:33:33 +0300 |
commit | fa7e19bca43057ea6a722261f82e372893f49a24 (patch) | |
tree | 916faa6e26d868423d6102da6aae606dd8ba9c53 /source | |
parent | 89ab591345e45b5eae5a5eb22191b795cc298a4a (diff) |
Depsgraph: Add missing relations builder
Was possible to miss some relations from being built
when parent object is linked to the scene graph indirectly.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc index 4ebc0804479..dfc20286565 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc @@ -415,6 +415,8 @@ void DepsgraphRelationBuilder::build_object(Object *object) DEG_OPCODE_TRANSFORM_OBJECT_UBEREVAL); /* Parenting. */ if (object->parent != NULL) { + /* Make sure parent object's relations are built. */ + build_object(object->parent); /* Parent relationship. */ build_object_parent(object); /* Local -> parent. */ |