Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc
| Show First 20 Lines • Show All 444 Lines • ▼ Show 20 Lines | else { | ||||
| /* Bones must be traversed before cleanup. */ | /* Bones must be traversed before cleanup. */ | ||||
| add_relation(bone_done_key, pose_cleanup_key, "Done -> Cleanup"); | add_relation(bone_done_key, pose_cleanup_key, "Done -> Cleanup"); | ||||
| add_relation(bone_ready_key, pose_cleanup_key, "Ready -> Cleanup"); | add_relation(bone_ready_key, pose_cleanup_key, "Ready -> Cleanup"); | ||||
| } | } | ||||
| /* Custom shape. */ | /* Custom shape. */ | ||||
| if (pchan->custom != nullptr) { | if (pchan->custom != nullptr) { | ||||
| build_object(pchan->custom); | build_object(pchan->custom); | ||||
| add_visibility_relation(&pchan->custom->id, &armature->id); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| void DepsgraphRelationBuilder::build_proxy_rig(Object *object) | void DepsgraphRelationBuilder::build_proxy_rig(Object *object) | ||||
| { | { | ||||
| bArmature *armature = (bArmature *)object->data; | bArmature *armature = (bArmature *)object->data; | ||||
| Object *proxy_from = object->proxy_from; | Object *proxy_from = object->proxy_from; | ||||
| Show All 40 Lines | LISTBASE_FOREACH (bPoseChannel *, pchan, &object->pose->chanbase) { | ||||
| if (pchan->prop != nullptr) { | if (pchan->prop != nullptr) { | ||||
| OperationKey bone_parameters( | OperationKey bone_parameters( | ||||
| &object->id, NodeType::PARAMETERS, OperationCode::PARAMETERS_EVAL, pchan->name); | &object->id, NodeType::PARAMETERS, OperationCode::PARAMETERS_EVAL, pchan->name); | ||||
| OperationKey from_bone_parameters( | OperationKey from_bone_parameters( | ||||
| &proxy_from->id, NodeType::PARAMETERS, OperationCode::PARAMETERS_EVAL, pchan->name); | &proxy_from->id, NodeType::PARAMETERS, OperationCode::PARAMETERS_EVAL, pchan->name); | ||||
| add_relation(from_bone_parameters, bone_parameters, "Proxy Bone Parameters"); | add_relation(from_bone_parameters, bone_parameters, "Proxy Bone Parameters"); | ||||
| } | } | ||||
| /* Custom shape. */ | |||||
| if (pchan->custom != nullptr) { | |||||
| build_object(pchan->custom); | |||||
| add_visibility_relation(&pchan->custom->id, &armature->id); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| } // namespace blender::deg | } // namespace blender::deg | ||||