Rename any instance of scene layer or render layer in code with view layer
[blender.git] / source / blender / compositor / nodes / COM_RenderLayersNode.cpp
index d1bb8462aa1fd6733d3332a0fd3c22a74ee2c8a5..e16aca3fdeef3a3ab090dc78ceddddf9362f6b1c 100644 (file)
@@ -65,12 +65,12 @@ void RenderLayersNode::testRenderLink(NodeConverter &converter,
                missingRenderLink(converter);
                return;
        }
-       SceneLayer *scene_layer = (SceneLayer *)BLI_findlink(&scene->render_layers, layerId);
-       if (scene_layer == NULL) {
+       ViewLayer *view_layer = (ViewLayer *)BLI_findlink(&scene->view_layers, layerId);
+       if (view_layer == NULL) {
                missingRenderLink(converter);
                return;
        }
-       RenderLayer *rl = RE_GetRenderLayer(rr, scene_layer->name);
+       RenderLayer *rl = RE_GetRenderLayer(rr, view_layer->name);
        if (rl == NULL) {
                missingRenderLink(converter);
                return;