Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
| Show First 20 Lines • Show All 1,407 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| if (built_map_.checkIsBuiltAndTag(armature)) { | if (built_map_.checkIsBuiltAndTag(armature)) { | ||||
| return; | return; | ||||
| } | } | ||||
| build_idproperties(armature->id.properties); | build_idproperties(armature->id.properties); | ||||
| build_animdata(&armature->id); | build_animdata(&armature->id); | ||||
| build_parameters(&armature->id); | build_parameters(&armature->id); | ||||
| /* Make sure pose is up-to-date with armature updates. */ | /* Make sure pose is up-to-date with armature updates. */ | ||||
| add_operation_node(&armature->id, NodeType::ARMATURE, OperationCode::ARMATURE_EVAL); | bArmature *armature_cow = (bArmature *)get_cow_id(&armature->id); | ||||
| add_operation_node(&armature->id, | |||||
| NodeType::ARMATURE, | |||||
| OperationCode::ARMATURE_EVAL, | |||||
| function_bind(BKE_armature_refresh_layer_used, _1, armature_cow)); | |||||
| build_armature_bones(&armature->bonebase); | build_armature_bones(&armature->bonebase); | ||||
| } | } | ||||
| void DepsgraphNodeBuilder::build_armature_bones(ListBase *bones) | void DepsgraphNodeBuilder::build_armature_bones(ListBase *bones) | ||||
| { | { | ||||
| LISTBASE_FOREACH (Bone *, bone, bones) { | LISTBASE_FOREACH (Bone *, bone, bones) { | ||||
| build_idproperties(bone->prop); | build_idproperties(bone->prop); | ||||
| build_armature_bones(&bone->childbase); | build_armature_bones(&bone->childbase); | ||||
| ▲ Show 20 Lines • Show All 444 Lines • Show Last 20 Lines | |||||