diff options
author | William Reynish <billreynish> | 2018-06-25 18:02:47 +0300 |
---|---|---|
committer | Pablo Vazquez <venomgfx@gmail.com> | 2018-06-25 18:02:50 +0300 |
commit | 51e077c5c0cd1f6d9b7e4dd02e2cd738abc7e9bd (patch) | |
tree | b8ee165813f4dfd52111a74be0c069652c788b51 /release | |
parent | 153195da22e472aa09af0505ac9cd64039a6d910 (diff) |
UI: Single-column layout for View Layer, passes and World
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_view_layer.py | 15 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/properties_world.py | 7 |
2 files changed, 8 insertions, 14 deletions
diff --git a/release/scripts/startup/bl_ui/properties_view_layer.py b/release/scripts/startup/bl_ui/properties_view_layer.py index 3fc003ac86e..05dc15216a2 100644 --- a/release/scripts/startup/bl_ui/properties_view_layer.py +++ b/release/scripts/startup/bl_ui/properties_view_layer.py @@ -38,6 +38,7 @@ class VIEWLAYER_PT_layer(ViewLayerButtonsPanel, Panel): def draw(self, context): layout = self.layout + layout.use_property_split = True scene = context.scene rd = scene.render @@ -54,26 +55,20 @@ class VIEWLAYER_PT_eevee_layer_passes(ViewLayerButtonsPanel, Panel): def draw(self, context): layout = self.layout + layout.use_property_split = True scene = context.scene rd = scene.render view_layer = context.view_layer - split = layout.split() - - col = split.column() + col = layout.column() col.prop(view_layer, "use_pass_combined") col.prop(view_layer, "use_pass_z") col.prop(view_layer, "use_pass_mist") col.prop(view_layer, "use_pass_normal") - col.separator() col.prop(view_layer, "use_pass_ambient_occlusion") - - col = split.column() - col.label(text="Subsurface:") - row = col.row(align=True) - row.prop(view_layer, "use_pass_subsurface_direct", text="Direct", toggle=True) - row.prop(view_layer, "use_pass_subsurface_color", text="Color", toggle=True) + col.prop(view_layer, "use_pass_subsurface_direct", text="Subsurface Direct") + col.prop(view_layer, "use_pass_subsurface_color", text="Subsurface Color") classes = ( diff --git a/release/scripts/startup/bl_ui/properties_world.py b/release/scripts/startup/bl_ui/properties_world.py index 1ec2d4774e8..bba7f9e132a 100644 --- a/release/scripts/startup/bl_ui/properties_world.py +++ b/release/scripts/startup/bl_ui/properties_world.py @@ -74,13 +74,12 @@ class EEVEE_WORLD_PT_mist(WorldButtonsPanel, Panel): def draw(self, context): layout = self.layout + layout.use_property_split = True world = context.world - split = layout.split(align=True) - split.prop(world.mist_settings, "start") - split.prop(world.mist_settings, "depth") - + layout.prop(world.mist_settings, "start") + layout.prop(world.mist_settings, "depth") layout.prop(world.mist_settings, "falloff") |