Depsgraph: Use scene operation code
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 1 Feb 2019 10:00:37 +0000 (11:00 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 1 Feb 2019 14:40:19 +0000 (15:40 +0100)
Hopefully, this is the last one.

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

index 844b98b52a349dacacbb8af4d9322c0d65e7d30a..fb02a6219dbd6e999bcd96227d11df06394b9af1 100644 (file)
@@ -167,8 +167,7 @@ void DepsgraphNodeBuilder::build_view_layer(
        add_operation_node(&scene->id,
                           NodeType::PARAMETERS,
                           NULL,
-                          OperationCode::PLACEHOLDER,
-                          "Scene Eval");
+                          OperationCode::SCENE_EVAL);
        /* Build all set scenes. */
        if (scene->set != NULL) {
                ViewLayer *set_view_layer = BKE_view_layer_default_render(scene->set);
index a5066e233f01ac56345cd4d214d41806e031959c..325ced54507531d2453b32d872e946daf8008106 100644 (file)
@@ -48,6 +48,8 @@ const char *operationCodeAsString(OperationCode opcode)
                /* Animation, Drivers, etc. */
                case OperationCode::ANIMATION: return "ANIMATION";
                case OperationCode::DRIVER: return "DRIVER";
+               /* Scene related. */
+               case OperationCode::SCENE_EVAL: return "SCENE_EVAL";
                /* Object related. */
                case OperationCode::OBJECT_BASE_FLAGS: return "OBJECT_BASE_FLAGS";
                /* Transform. */
index 34236817736f0473dd216f0272e50f586ec604c5..f010a40b0482b81e3168c0717aada898a77c5cdf 100644 (file)
@@ -60,6 +60,9 @@ enum class OperationCode {
        /* Driver */
        DRIVER,
 
+       /* Scene related. ------------------------------------------------------- */
+       SCENE_EVAL,
+
        /* Object related. ------------------------------------------------------ */
        OBJECT_BASE_FLAGS,