[Bf-blender-cvs] [bc08cf5] master: UI: Make "Lock Interface" a icon only button and pack into the Display row, we don't need a dedicated row for this option, also it looked quite bad for Cycles.
Thomas Dinges
noreply at git.blender.org
Wed Jan 29 13:29:35 CET 2014
Commit: bc08cf58576d29862fc167927d79285217d9948b
Author: Thomas Dinges
Date: Wed Jan 29 13:27:33 2014 +0100
https://developer.blender.org/rBbc08cf58576d29862fc167927d79285217d9948b
UI: Make "Lock Interface" a icon only button and pack into the Display row, we don't need a dedicated row for this option, also it looked quite bad for Cycles.
===================================================================
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 f126153..ebcb8ea 100644
--- a/release/scripts/startup/bl_ui/properties_render.py
+++ b/release/scripts/startup/bl_ui/properties_render.py
@@ -69,9 +69,16 @@ class RENDER_PT_render(RenderButtonsPanel, Panel):
row.operator("render.render", text="Animation", icon='RENDER_ANIMATION').animation = True
row.operator("sound.mixdown", text="Audio", icon='PLAY_AUDIO')
- layout.prop(rd, "display_mode", text="Display")
+ split = layout.split(percentage=0.33)
- layout.prop(rd, "use_lock_interface")
+ split.label(text="Display:")
+ row = split.row(align=True)
+ row.prop(rd, "display_mode", text="")
+
+ if rd.use_lock_interface:
+ row.prop(rd, "use_lock_interface", text="", icon='LOCKED')
+ else:
+ row.prop(rd, "use_lock_interface", text="", icon='UNLOCKED')
class RENDER_PT_dimensions(RenderButtonsPanel, Panel):
More information about the Bf-blender-cvs
mailing list