Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_view_layer.py
| Show All 28 Lines | class ViewLayerButtonsPanel: | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return (context.engine in cls.COMPAT_ENGINES) | return (context.engine in cls.COMPAT_ENGINES) | ||||
| class VIEWLAYER_PT_layer(ViewLayerButtonsPanel, Panel): | class VIEWLAYER_PT_layer(ViewLayerButtonsPanel, Panel): | ||||
| bl_label = "View Layer" | bl_label = "View Layer" | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL', 'BLENDER_LANPR'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| scene = context.scene | scene = context.scene | ||||
| rd = scene.render | rd = scene.render | ||||
| layer = bpy.context.view_layer | layer = bpy.context.view_layer | ||||
| Show All 37 Lines | |||||