diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-04 11:15:45 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-04 11:15:45 +0300 |
commit | f913e6909353aab51f2b1381799130be4f8b5625 (patch) | |
tree | 398965f09df63ff653845c22d138f8ff8f1ad5c7 /source/blender/depsgraph | |
parent | 4674e02562637f36a9900bff5f5f4acc9aff482d (diff) |
Depsgraph: Add missing expansion od custom bone shapes
This was fixed in 2.8 branch but not in master.
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_nodes_rig.cc | 5 | ||||
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_nodes_rig.cc b/source/blender/depsgraph/intern/builder/deg_builder_nodes_rig.cc index 0c7c3d13d93..b9a53c69070 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_nodes_rig.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_nodes_rig.cc @@ -284,6 +284,11 @@ void DepsgraphNodeBuilder::build_rig(Object *object) } } + /* Custom shape. */ + if (pchan->custom != NULL) { + build_object(NULL, pchan->custom); + } + pchan_index++; } } diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc index b9850209d7d..db8f987fa39 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc @@ -436,6 +436,11 @@ void DepsgraphRelationBuilder::build_rig(Object *object) /* assume that all bones must be done for the pose to be ready (for deformers) */ add_relation(bone_done_key, flush_key, "PoseEval Result-Bone Link"); + + /* Custom shape. */ + if (pchan->custom != NULL) { + build_object(pchan->custom); + } } } |