Rename any instance of scene layer or render layer in code with view layer
[blender.git] / release / scripts / startup / bl_ui / space_node.py
index 612ac8e4c40fa8809700d4fde213c2f5813090bc..2f98585f5383bf18e41464bd2140810f7ae20558 100644 (file)
@@ -81,8 +81,8 @@ class NODE_HT_header(Header):
                     row.prop(snode_id, "use_nodes")
 
             if use_shading_nodes and snode.shader_type == 'LINESTYLE':
-                rl = context.scene.render_layers.active
-                lineset = rl.freestyle_settings.linesets.active
+                view_layer = context.scene.view_layers.active
+                lineset = view_layer.freestyle_settings.linesets.active
                 if lineset is not None:
                     row = layout.row()
                     row.enabled = not snode.pin
@@ -272,7 +272,7 @@ class NODE_MT_node(Menu):
 
         layout.separator()
 
-        layout.operator("node.read_renderlayers")
+        layout.operator("node.read_viewlayers")
         layout.operator("node.read_fullsamplelayers")