Commit: d2d3ab05b3b078acc10c26e984d534524177a615 Author: Aaron Carlisle Date: Wed Sep 9 21:15:05 2020 -0400 Branches: master https://developer.blender.org/rBd2d3ab05b3b078acc10c26e984d534524177a615
UI: Use split layout for world mist settings Differential Revision: https://developer.blender.org/D7548 =================================================================== M intern/cycles/blender/addon/ui.py M release/scripts/startup/bl_ui/properties_world.py =================================================================== diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py index 03b1675c309..167a359e62e 100644 --- a/intern/cycles/blender/addon/ui.py +++ b/intern/cycles/blender/addon/ui.py @@ -1571,14 +1571,16 @@ class CYCLES_WORLD_PT_mist(CyclesButtonsPanel, 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") + col = layout.column(align=True) + col.prop(world.mist_settings, "start") + col.prop(world.mist_settings, "depth") - layout.prop(world.mist_settings, "falloff") + col = layout.column() + col.prop(world.mist_settings, "falloff") class CYCLES_WORLD_PT_ray_visibility(CyclesButtonsPanel, Panel): diff --git a/release/scripts/startup/bl_ui/properties_world.py b/release/scripts/startup/bl_ui/properties_world.py index 6f00e521e58..9b61311c2d3 100644 --- a/release/scripts/startup/bl_ui/properties_world.py +++ b/release/scripts/startup/bl_ui/properties_world.py @@ -77,9 +77,12 @@ class EEVEE_WORLD_PT_mist(WorldButtonsPanel, Panel): world = context.world - layout.prop(world.mist_settings, "start") - layout.prop(world.mist_settings, "depth") - layout.prop(world.mist_settings, "falloff") + col = layout.column(align=True) + col.prop(world.mist_settings, "start") + col.prop(world.mist_settings, "depth") + + col = layout.column() + col.prop(world.mist_settings, "falloff") class WORLD_PT_custom_props(WorldButtonsPanel, PropertyPanel, Panel): _______________________________________________ Bf-blender-cvs mailing list [email protected] https://lists.blender.org/mailman/listinfo/bf-blender-cvs
