[Bf-blender-cvs] [65ac6e214df] temp-eeveelightcache: Eevee: LightProbe: UI tweaks
Clément Foucault
noreply at git.blender.org
Mon Jul 9 23:03:43 CEST 2018
Commit: 65ac6e214dfe19c4adeb118ed80acc3005ef4782
Author: Clément Foucault
Date: Mon Jul 9 15:47:30 2018 +0200
Branches: temp-eeveelightcache
https://developer.blender.org/rB65ac6e214dfe19c4adeb118ed80acc3005ef4782
Eevee: LightProbe: UI tweaks
===================================================================
M release/scripts/startup/bl_ui/properties_render.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py
index 23fa6676cb5..7c52b8ec118 100644
--- a/release/scripts/startup/bl_ui/properties_render.py
+++ b/release/scripts/startup/bl_ui/properties_render.py
@@ -712,6 +712,7 @@ class RENDER_PT_eevee_indirect_lighting(RenderButtonsPanel, Panel):
def draw(self, context):
layout = self.layout
layout.use_property_split = True
+ layout.use_property_decorate = False # No animation.
scene = context.scene
props = scene.eevee
@@ -727,21 +728,27 @@ class RENDER_PT_eevee_indirect_lighting(RenderButtonsPanel, Panel):
col.prop(props, "gi_visibility_resolution", text="Diffuse Occlusion")
layout.use_property_split = False
- row = layout.row(align=True)
+ row = layout.split(percentage=0.5)
+ row.alignment = 'RIGHT'
row.label("Cubemap Display")
- row.prop(props, "gi_cubemap_draw_size", text="Size")
+
+ sub = row.row(align=True)
+ sub.prop(props, "gi_cubemap_draw_size", text="Size")
if props.gi_show_cubemaps :
- row.prop(props, "gi_show_cubemaps", text="", toggle=True, icon='HIDE_OFF')
+ sub.prop(props, "gi_show_cubemaps", text="", toggle=True, icon='HIDE_OFF')
else:
- row.prop(props, "gi_show_cubemaps", text="", toggle=True, icon='HIDE_ON')
+ sub.prop(props, "gi_show_cubemaps", text="", toggle=True, icon='HIDE_ON')
- row = layout.row(align=True)
+ row = layout.split(percentage=0.5)
+ row.alignment = 'RIGHT'
row.label("Irradiance Display")
- row.prop(props, "gi_irradiance_draw_size", text="Size")
+
+ sub = row.row(align=True)
+ sub.prop(props, "gi_irradiance_draw_size", text="Size")
if props.gi_show_irradiance :
- row.prop(props, "gi_show_irradiance", text="", toggle=True, icon='HIDE_OFF')
+ sub.prop(props, "gi_show_irradiance", text="", toggle=True, icon='HIDE_OFF')
else:
- row.prop(props, "gi_show_irradiance", text="", toggle=True, icon='HIDE_ON')
+ sub.prop(props, "gi_show_irradiance", text="", toggle=True, icon='HIDE_ON')
class RENDER_PT_eevee_film(RenderButtonsPanel, Panel):
More information about the Bf-blender-cvs
mailing list