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.

This commit is contained in:
Thomas Dinges
2014-01-29 13:27:33 +01:00
parent 9612433884
commit bc08cf5857

View File

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