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

This commit is contained in:
William Reynish 2018-06-25 17:02:47 +02:00 committed by Pablo Vazquez
parent 153195da22
commit 51e077c5c0
2 changed files with 8 additions and 14 deletions

View File

@ -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 = (

View File

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