[Bf-blender-cvs] [51e077c5c0c] blender2.8: UI: Single-column layout for View Layer, passes and World

William Reynish noreply at git.blender.org
Mon Jun 25 17:05:10 CEST 2018


Commit: 51e077c5c0cd1f6d9b7e4dd02e2cd738abc7e9bd
Author: William Reynish
Date:   Mon Jun 25 17:02:47 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB51e077c5c0cd1f6d9b7e4dd02e2cd738abc7e9bd

UI: Single-column layout for View Layer, passes and World

===================================================================

M	release/scripts/startup/bl_ui/properties_view_layer.py
M	release/scripts/startup/bl_ui/properties_world.py

===================================================================

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")



More information about the Bf-blender-cvs mailing list