diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-01 12:37:14 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-01 17:40:19 +0300 |
commit | 700e3cc2a87a20f2ce3f8af31ece4df1b13e0ba8 (patch) | |
tree | 5225d245fb73cccf4a2384e00fd01459548825ed /source/blender/depsgraph/intern/node | |
parent | 6a54f3bb49209305bdb3999273d128a9e77878bc (diff) |
Depsgraph: Use operation code for geometry evaluation init
Makes it more explicit and avoids strings comparisons during build.
Diffstat (limited to 'source/blender/depsgraph/intern/node')
-rw-r--r-- | source/blender/depsgraph/intern/node/deg_node_operation.cc | 1 | ||||
-rw-r--r-- | source/blender/depsgraph/intern/node/deg_node_operation.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/node/deg_node_operation.cc b/source/blender/depsgraph/intern/node/deg_node_operation.cc index 68a359a09ed..90044519596 100644 --- a/source/blender/depsgraph/intern/node/deg_node_operation.cc +++ b/source/blender/depsgraph/intern/node/deg_node_operation.cc @@ -64,6 +64,7 @@ const char *operationCodeAsString(OperationCode opcode) case OperationCode::RIGIDBODY_TRANSFORM_COPY: return "RIGIDBODY_TRANSFORM_COPY"; /* Geometry. */ + case OperationCode::GEOMETRY_EVAL_INIT: return "GEOMETRY_EVAL_INIT"; case OperationCode::GEOMETRY_EVAL: return "GEOMETRY_EVAL"; case OperationCode::GEOMETRY_SHAPEKEY: return "GEOMETRY_SHAPEKEY"; /* Object data. */ diff --git a/source/blender/depsgraph/intern/node/deg_node_operation.h b/source/blender/depsgraph/intern/node/deg_node_operation.h index 480b33fad83..3cb49ccebfe 100644 --- a/source/blender/depsgraph/intern/node/deg_node_operation.h +++ b/source/blender/depsgraph/intern/node/deg_node_operation.h @@ -84,6 +84,9 @@ enum class OperationCode { /* Geometry. ------------------------------------------------------------ */ + /* Initialize evaluation of the geometry. Is an entry operation of geometry + * component. */ + GEOMETRY_EVAL_INIT, /* Evaluate the whole geometry, including modifiers. */ GEOMETRY_EVAL, /* Evaluation of a shape key. */ |