Depsgraph: Use operation code for armature evaluation
This commit is contained in:
@@ -1415,8 +1415,7 @@ void DepsgraphNodeBuilder::build_armature(bArmature *armature)
|
||||
add_operation_node(&armature->id,
|
||||
NodeType::PARAMETERS,
|
||||
NULL,
|
||||
OperationCode::PLACEHOLDER,
|
||||
"Armature Eval");
|
||||
OperationCode::ARMATURE_EVAL);
|
||||
}
|
||||
|
||||
void DepsgraphNodeBuilder::build_camera(Camera *camera)
|
||||
|
@@ -343,8 +343,7 @@ void DepsgraphRelationBuilder::build_rig(Object *object)
|
||||
build_armature(armature);
|
||||
OperationKey armature_key(&armature->id,
|
||||
NodeType::PARAMETERS,
|
||||
OperationCode::PLACEHOLDER,
|
||||
"Armature Eval");
|
||||
OperationCode::ARMATURE_EVAL);
|
||||
add_relation(armature_key, pose_init_key, "Data dependency");
|
||||
/* IK Solvers.
|
||||
*
|
||||
|
@@ -71,6 +71,7 @@ const char *operationCodeAsString(OperationCode opcode)
|
||||
/* Object data. */
|
||||
case OperationCode::LIGHT_PROBE_EVAL: return "LIGHT_PROBE_EVAL";
|
||||
case OperationCode::SPEAKER_EVAL: return "SPEAKER_EVAL";
|
||||
case OperationCode::ARMATURE_EVAL: return "ARMATURE_EVAL";
|
||||
/* Pose. */
|
||||
case OperationCode::POSE_INIT: return "POSE_INIT";
|
||||
case OperationCode::POSE_INIT_IK: return "POSE_INIT_IK";
|
||||
|
@@ -98,6 +98,7 @@ enum class OperationCode {
|
||||
/* Object data. --------------------------------------------------------- */
|
||||
LIGHT_PROBE_EVAL,
|
||||
SPEAKER_EVAL,
|
||||
ARMATURE_EVAL,
|
||||
|
||||
/* Pose. ---------------------------------------------------------------- */
|
||||
/* Init pose, clear flags, etc. */
|
||||
|
Reference in New Issue
Block a user