From e49c0b495a03735c704d139bbc4f28cd5ae99fe2 Mon Sep 17 00:00:00 2001 From: Matt Ebb Date: Wed, 27 May 2009 11:21:34 +0000 Subject: [PATCH] Reverted last buttons commit after chatting with Thomas :) note: The new 'Toggle' options in the UI api should be avoided for normal text buttons, and used sparingly otherwise. We want to avoid having two inconsistent appearances for the same type of buttons. --- release/ui/buttons_scene.py | 22 +++++++++++----------- release/ui/buttons_world.py | 6 +++--- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/release/ui/buttons_scene.py b/release/ui/buttons_scene.py index b259f297d68..7b23ae03088 100644 --- a/release/ui/buttons_scene.py +++ b/release/ui/buttons_scene.py @@ -108,8 +108,8 @@ class RENDER_PT_render(RenderButtonsPanel): row.item_booleanO("SCREEN_OT_render", "anim", True, text="Render Animation", icon=111) row = layout.row() - row.itemR(rd, "do_composite", toggle=True) - row.itemR(rd, "do_sequence", toggle=True) + row.itemR(rd, "do_composite") + row.itemR(rd, "do_sequence") if rd.do_composite: row = layout.row() row.itemR(rd, "free_image_textures") @@ -188,15 +188,15 @@ class RENDER_PT_stamp(RenderButtonsPanel): split = layout.split() - sub = split.column(align=True) - sub.itemR(rd, "stamp_time", text="Time", toggle=True) - sub.itemR(rd, "stamp_date", text="Date", toggle=True) - sub.itemR(rd, "stamp_frame", text="Frame", toggle=True) - sub.itemR(rd, "stamp_camera", text="Scene", toggle=True) - sub.itemR(rd, "stamp_marker", text="Marker", toggle=True) - sub.itemR(rd, "stamp_filename", text="Filename", toggle=True) - sub.itemR(rd, "stamp_sequence_strip", text="Seq. Strip", toggle=True) - sub.itemR(rd, "stamp_note", text="Note", toggle=True) + sub = split.column() + sub.itemR(rd, "stamp_time", text="Time") + sub.itemR(rd, "stamp_date", text="Date") + sub.itemR(rd, "stamp_frame", text="Frame") + sub.itemR(rd, "stamp_camera", text="Scene") + sub.itemR(rd, "stamp_marker", text="Marker") + sub.itemR(rd, "stamp_filename", text="Filename") + sub.itemR(rd, "stamp_sequence_strip", text="Seq. Strip") + sub.itemR(rd, "stamp_note", text="Note") if (rd.stamp_note): sub.itemR(rd, "stamp_note_text", text="") diff --git a/release/ui/buttons_world.py b/release/ui/buttons_world.py index ff14486d05e..401fbcb0c22 100644 --- a/release/ui/buttons_world.py +++ b/release/ui/buttons_world.py @@ -17,9 +17,9 @@ class WORLD_PT_world(WorldButtonsPanel): layout = self.layout row = layout.row() - row.itemR(world, "blend_sky", toggle=True) - row.itemR(world, "paper_sky", toggle=True) - row.itemR(world, "real_sky", toggle=True) + row.itemR(world, "blend_sky") + row.itemR(world, "paper_sky") + row.itemR(world, "real_sky") row = layout.row() row.column().itemR(world, "horizon_color")