Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_view_layer.py
| Context not available. | |||||
| return (context.engine in cls.COMPAT_ENGINES) | return (context.engine in cls.COMPAT_ENGINES) | ||||
| class VIEWLAYER_PT_context_viewlayer(ViewLayerButtonsPanel, Panel): | |||||
| bl_label = "" | |||||
| bl_options = {'HIDE_HEADER'} | |||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| window = context.window | |||||
| screen = context.screen | |||||
| scene = window.scene | |||||
| row = layout.row(align=True) | |||||
| row.template_search( | |||||
| window, "view_layer", | |||||
| scene, "view_layers", | |||||
| new="scene.view_layer_add", | |||||
| unlink="scene.view_layer_remove") | |||||
| 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_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | ||||
| Context not available. | |||||
| classes = ( | classes = ( | ||||
| VIEWLAYER_PT_context_viewlayer, | |||||
| VIEWLAYER_PT_layer, | VIEWLAYER_PT_layer, | ||||
| VIEWLAYER_PT_eevee_layer_passes, | VIEWLAYER_PT_eevee_layer_passes, | ||||
| ) | ) | ||||
| Context not available. | |||||