diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-01 12:57:39 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-01 17:40:19 +0300 |
commit | b78f29b04977475010bbe29f918ab1b007e20ee6 (patch) | |
tree | f562a5d72beb97424b353e1ec5e34b635f39ed5c /source/blender | |
parent | 0d2dfd2e2d40ba28f877331b4fe3e1f86442bb55 (diff) |
Depsgraph: Use operation code for file cache update
All done in separate commits, so it's easier to bisect just in case.
Diffstat (limited to 'source/blender')
3 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc b/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc index 2c213c7ec80..b0d06a30924 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc @@ -1617,7 +1617,7 @@ void DepsgraphNodeBuilder::build_cachefile(CacheFile *cache_file) build_animdata(cache_file_id); /* Cache evaluation itself. */ add_operation_node(cache_file_id, NodeType::CACHE, NULL, - OperationCode::PLACEHOLDER, "Cache File Update"); + OperationCode::FILE_CACHE_UPDATE); } void DepsgraphNodeBuilder::build_mask(Mask *mask) diff --git a/source/blender/depsgraph/intern/node/deg_node_operation.cc b/source/blender/depsgraph/intern/node/deg_node_operation.cc index b222253f555..a5066e233f0 100644 --- a/source/blender/depsgraph/intern/node/deg_node_operation.cc +++ b/source/blender/depsgraph/intern/node/deg_node_operation.cc @@ -100,6 +100,8 @@ const char *operationCodeAsString(OperationCode opcode) return "PARTICLE_SETTINGS_RESET"; /* Point Cache. */ case OperationCode::POINT_CACHE_RESET: return "POINT_CACHE_RESET"; + /* File cache. */ + case OperationCode::FILE_CACHE_UPDATE: return "FILE_CACHE_UPDATE"; /* Batch cache. */ case OperationCode::GEOMETRY_SELECT_UPDATE: return "GEOMETRY_SELECT_UPDATE"; diff --git a/source/blender/depsgraph/intern/node/deg_node_operation.h b/source/blender/depsgraph/intern/node/deg_node_operation.h index 545290d9399..34236817736 100644 --- a/source/blender/depsgraph/intern/node/deg_node_operation.h +++ b/source/blender/depsgraph/intern/node/deg_node_operation.h @@ -148,6 +148,9 @@ enum class OperationCode { /* Point Cache. --------------------------------------------------------- */ POINT_CACHE_RESET, + /* File cache. ---------------------------------------------------------- */ + FILE_CACHE_UPDATE, + /* Collections. --------------------------------------------------------- */ VIEW_LAYER_EVAL, |