Depsgraph: Use operation code for file cache update
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 1 Feb 2019 09:57:39 +0000 (10:57 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 1 Feb 2019 14:40:19 +0000 (15:40 +0100)
All done in separate commits, so it's easier to bisect just in case.

source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
source/blender/depsgraph/intern/node/deg_node_operation.cc
source/blender/depsgraph/intern/node/deg_node_operation.h

index 2c213c7..b0d06a3 100644 (file)
@@ -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)
index b222253..a5066e2 100644 (file)
@@ -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";
index 545290d..3423681 100644 (file)
@@ -148,6 +148,9 @@ enum class OperationCode {
        /* Point Cache. --------------------------------------------------------- */
        POINT_CACHE_RESET,
 
+       /* File cache. ---------------------------------------------------------- */
+       FILE_CACHE_UPDATE,
+
        /* Collections. --------------------------------------------------------- */
        VIEW_LAYER_EVAL,