Rename any instance of scene layer or render layer in code with view layer
[blender.git] / release / scripts / freestyle / modules / parameter_editor.py
index e5fc83b07edc25834101df46fa470d08e70f068d..b00b30a9a21a85c7559774d8c4c8001e63b2f737 100644 (file)
@@ -1206,7 +1206,7 @@ integration_types = {
 # main function for parameter processing
 def process(layer_name, lineset_name):
     scene = getCurrentScene()
-    layer = scene.render_layers[layer_name]
+    layer = scene.view_layers[layer_name]
     lineset = layer.freestyle_settings.linesets[lineset_name]
     linestyle = lineset.linestyle