Depsgraph: Cleanup, use explicit cloth modifier opcode
Avoids use of placeholder operation which also was involving some string comparisons.
This commit is contained in:
@@ -707,8 +707,7 @@ void DepsgraphNodeBuilder::build_cloth(Scene *scene, Object *object)
|
|||||||
_1,
|
_1,
|
||||||
scene,
|
scene,
|
||||||
object),
|
object),
|
||||||
DEG_OPCODE_PLACEHOLDER,
|
DEG_OPCODE_GEOMETRY_CLOTH_MODIFIER);
|
||||||
"Cloth Modifier");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Shapekeys */
|
/* Shapekeys */
|
||||||
|
|||||||
@@ -1419,8 +1419,7 @@ void DepsgraphRelationBuilder::build_cloth(Scene * /*scene*/,
|
|||||||
{
|
{
|
||||||
OperationKey cache_key(&object->id,
|
OperationKey cache_key(&object->id,
|
||||||
DEG_NODE_TYPE_CACHE,
|
DEG_NODE_TYPE_CACHE,
|
||||||
DEG_OPCODE_PLACEHOLDER,
|
DEG_OPCODE_GEOMETRY_CLOTH_MODIFIER);
|
||||||
"Cloth Modifier");
|
|
||||||
/* Cache component affects on modifier. */
|
/* Cache component affects on modifier. */
|
||||||
OperationKey modifier_key(&object->id,
|
OperationKey modifier_key(&object->id,
|
||||||
DEG_NODE_TYPE_GEOMETRY,
|
DEG_NODE_TYPE_GEOMETRY,
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ static const char *stringify_opcode(eDepsOperation_Code opcode)
|
|||||||
STRINGIFY_OPCODE(RIGIDBODY_TRANSFORM_COPY);
|
STRINGIFY_OPCODE(RIGIDBODY_TRANSFORM_COPY);
|
||||||
/* Geometry. */
|
/* Geometry. */
|
||||||
STRINGIFY_OPCODE(GEOMETRY_UBEREVAL);
|
STRINGIFY_OPCODE(GEOMETRY_UBEREVAL);
|
||||||
|
STRINGIFY_OPCODE(GEOMETRY_CLOTH_MODIFIER);
|
||||||
/* Pose. */
|
/* Pose. */
|
||||||
STRINGIFY_OPCODE(POSE_INIT);
|
STRINGIFY_OPCODE(POSE_INIT);
|
||||||
STRINGIFY_OPCODE(POSE_INIT_IK);
|
STRINGIFY_OPCODE(POSE_INIT_IK);
|
||||||
|
|||||||
@@ -167,6 +167,7 @@ typedef enum eDepsOperation_Code {
|
|||||||
/* Geometry. ---------------------------------------- */
|
/* Geometry. ---------------------------------------- */
|
||||||
/* Evaluate the whole geometry, including modifiers. */
|
/* Evaluate the whole geometry, including modifiers. */
|
||||||
DEG_OPCODE_GEOMETRY_UBEREVAL,
|
DEG_OPCODE_GEOMETRY_UBEREVAL,
|
||||||
|
DEG_OPCODE_GEOMETRY_CLOTH_MODIFIER,
|
||||||
|
|
||||||
/* Pose. -------------------------------------------- */
|
/* Pose. -------------------------------------------- */
|
||||||
/* Init pose, clear flags, etc. */
|
/* Init pose, clear flags, etc. */
|
||||||
|
|||||||
Reference in New Issue
Block a user