Depsgraph: Use explicit opcode for shape key

This commit is contained in:
Sergey Sharybin
2017-10-25 11:37:24 +02:00
parent a2e22c79cb
commit eb090d0609
3 changed files with 6 additions and 3 deletions

View File

@@ -714,9 +714,10 @@ void DepsgraphNodeBuilder::build_cloth(Scene *scene, Object *object)
void DepsgraphNodeBuilder::build_shapekeys(Key *key)
{
build_animdata(&key->id);
add_operation_node(&key->id, DEG_NODE_TYPE_GEOMETRY, NULL,
DEG_OPCODE_PLACEHOLDER, "Shapekey Eval");
add_operation_node(&key->id,
DEG_NODE_TYPE_GEOMETRY,
NULL,
DEG_OPCODE_GEOMETRY_SHAPEKEY);
}
/* ObData Geometry Evaluation */

View File

@@ -118,6 +118,7 @@ static const char *stringify_opcode(eDepsOperation_Code opcode)
/* Geometry. */
STRINGIFY_OPCODE(GEOMETRY_UBEREVAL);
STRINGIFY_OPCODE(GEOMETRY_CLOTH_MODIFIER);
STRINGIFY_OPCODE(GEOMETRY_SHAPEKEY);
/* Pose. */
STRINGIFY_OPCODE(POSE_INIT);
STRINGIFY_OPCODE(POSE_INIT_IK);

View File

@@ -168,6 +168,7 @@ typedef enum eDepsOperation_Code {
/* Evaluate the whole geometry, including modifiers. */
DEG_OPCODE_GEOMETRY_UBEREVAL,
DEG_OPCODE_GEOMETRY_CLOTH_MODIFIER,
DEG_OPCODE_GEOMETRY_SHAPEKEY,
/* Pose. -------------------------------------------- */
/* Init pose, clear flags, etc. */