Cleanup: redundant bpy.context access
authorCampbell Barton <ideasman42@gmail.com>
Wed, 13 Mar 2019 02:13:29 +0000 (13:13 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 13 Mar 2019 02:32:10 +0000 (13:32 +1100)
release/scripts/startup/bl_ui/properties_view_layer.py

index 0dea2d04d472ab685dba00f5d3f3363d357b51da..c0f7eca88bccd2ddc504c28dbd5dc554190a4e55 100644 (file)
@@ -47,7 +47,7 @@ class VIEWLAYER_PT_layer(ViewLayerButtonsPanel, Panel):
 
         scene = context.scene
         rd = scene.render
-        layer = bpy.context.view_layer
+        layer = context.view_layer
 
         col = flow.column()
         col.prop(layer, "use", text="Use for Rendering")