Depsgraph: Use operation code for armature evaluation

This commit is contained in:
Sergey Sharybin
2019-02-01 10:56:01 +01:00
parent 4a30674102
commit 0d2dfd2e2d
4 changed files with 4 additions and 4 deletions

View File

@@ -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)

View File

@@ -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.
*

View File

@@ -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";

View File

@@ -98,6 +98,7 @@ enum class OperationCode {
/* Object data. --------------------------------------------------------- */
LIGHT_PROBE_EVAL,
SPEAKER_EVAL,
ARMATURE_EVAL,
/* Pose. ---------------------------------------------------------------- */
/* Init pose, clear flags, etc. */