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