diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-01 12:54:37 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-01 17:40:19 +0300 |
commit | 4a3067410250eeae578b87a5d4f629fa1455bc43 (patch) | |
tree | faaccd65b8733ec8413618baa6baff73d19ea7e7 /source/blender/depsgraph/intern/node | |
parent | c1cf4c29da23d27bf81746ae0e000e10d4d3147a (diff) |
Depsgraph: Use operation code for dupli-group
Diffstat (limited to 'source/blender/depsgraph/intern/node')
-rw-r--r-- | source/blender/depsgraph/intern/node/deg_node_operation.cc | 2 | ||||
-rw-r--r-- | source/blender/depsgraph/intern/node/deg_node_operation.h | 3 |
2 files changed, 5 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 72256e35ea8..cf4671bf72b 100644 --- a/source/blender/depsgraph/intern/node/deg_node_operation.cc +++ b/source/blender/depsgraph/intern/node/deg_node_operation.cc @@ -123,6 +123,8 @@ const char *operationCodeAsString(OperationCode opcode) /* Generic datablock. */ case OperationCode::GENERIC_DATABLOCK_UPDATE: return "GENERIC_DATABLOCK_UPDATE"; + /* instancing/duplication. */ + case OperationCode::DUPLI: return "DUPLI"; } BLI_assert(!"Unhandled operation code, should never happen."); return "UNKNOWN"; diff --git a/source/blender/depsgraph/intern/node/deg_node_operation.h b/source/blender/depsgraph/intern/node/deg_node_operation.h index 30818c20d69..7a6df7cf161 100644 --- a/source/blender/depsgraph/intern/node/deg_node_operation.h +++ b/source/blender/depsgraph/intern/node/deg_node_operation.h @@ -174,6 +174,9 @@ enum class OperationCode { /* Generic datablock ---------------------------------------------------- */ GENERIC_DATABLOCK_UPDATE, + + /* Duplication/instancing system. --------------------------------------- */ + DUPLI, }; const char *operationCodeAsString(OperationCode opcode); |