Depsgraph: Use operation code for file cache update
All done in separate commits, so it's easier to bisect just in case.
This commit is contained in:
@@ -1617,7 +1617,7 @@ void DepsgraphNodeBuilder::build_cachefile(CacheFile *cache_file)
|
|||||||
build_animdata(cache_file_id);
|
build_animdata(cache_file_id);
|
||||||
/* Cache evaluation itself. */
|
/* Cache evaluation itself. */
|
||||||
add_operation_node(cache_file_id, NodeType::CACHE, NULL,
|
add_operation_node(cache_file_id, NodeType::CACHE, NULL,
|
||||||
OperationCode::PLACEHOLDER, "Cache File Update");
|
OperationCode::FILE_CACHE_UPDATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DepsgraphNodeBuilder::build_mask(Mask *mask)
|
void DepsgraphNodeBuilder::build_mask(Mask *mask)
|
||||||
|
@@ -100,6 +100,8 @@ const char *operationCodeAsString(OperationCode opcode)
|
|||||||
return "PARTICLE_SETTINGS_RESET";
|
return "PARTICLE_SETTINGS_RESET";
|
||||||
/* Point Cache. */
|
/* Point Cache. */
|
||||||
case OperationCode::POINT_CACHE_RESET: return "POINT_CACHE_RESET";
|
case OperationCode::POINT_CACHE_RESET: return "POINT_CACHE_RESET";
|
||||||
|
/* File cache. */
|
||||||
|
case OperationCode::FILE_CACHE_UPDATE: return "FILE_CACHE_UPDATE";
|
||||||
/* Batch cache. */
|
/* Batch cache. */
|
||||||
case OperationCode::GEOMETRY_SELECT_UPDATE:
|
case OperationCode::GEOMETRY_SELECT_UPDATE:
|
||||||
return "GEOMETRY_SELECT_UPDATE";
|
return "GEOMETRY_SELECT_UPDATE";
|
||||||
|
@@ -148,6 +148,9 @@ enum class OperationCode {
|
|||||||
/* Point Cache. --------------------------------------------------------- */
|
/* Point Cache. --------------------------------------------------------- */
|
||||||
POINT_CACHE_RESET,
|
POINT_CACHE_RESET,
|
||||||
|
|
||||||
|
/* File cache. ---------------------------------------------------------- */
|
||||||
|
FILE_CACHE_UPDATE,
|
||||||
|
|
||||||
/* Collections. --------------------------------------------------------- */
|
/* Collections. --------------------------------------------------------- */
|
||||||
VIEW_LAYER_EVAL,
|
VIEW_LAYER_EVAL,
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user