[Bf-blender-cvs] [5681b4f] master: Action Editor: Move up/down buttons to be before the datablock selector

Joshua Leung noreply at git.blender.org
Fri Apr 3 14:41:22 CEST 2015


Commit: 5681b4fc83c4ce96ae15a0ab63bea94a9b53b142
Author: Joshua Leung
Date:   Sat Apr 4 00:16:40 2015 +1300
Branches: master
https://developer.blender.org/rB5681b4fc83c4ce96ae15a0ab63bea94a9b53b142

Action Editor: Move up/down buttons to be before the datablock selector

It turned out that the constantly changing width of the datablock selector
made it a pain to use these to quickly toggle between different actions,
as the buttons would keep jumping around, thus leading to errors when
quickly toggling between actions. This way doesn't look quite as great,
but should be more usable.

===================================================================

M	release/scripts/startup/bl_ui/space_dopesheet.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_dopesheet.py b/release/scripts/startup/bl_ui/space_dopesheet.py
index 27fc73f..c4452ee 100644
--- a/release/scripts/startup/bl_ui/space_dopesheet.py
+++ b/release/scripts/startup/bl_ui/space_dopesheet.py
@@ -114,12 +114,12 @@ class DOPESHEET_HT_header(Header):
         layout.prop(st, "mode", text="")
 
         if st.mode in {'ACTION', 'SHAPEKEY'}:
-            layout.template_ID(st, "action", new="action.new")
-
             row = layout.row(align=True)
             row.operator("action.layer_prev", text="", icon='TRIA_DOWN')
             row.operator("action.layer_next", text="", icon='TRIA_UP')
 
+            layout.template_ID(st, "action", new="action.new")
+
             row = layout.row(align=True)
             row.operator("action.push_down", text="Push Down", icon='NLA_PUSHDOWN')
             row.operator("action.stash", text="Stash", icon='FREEZE')




More information about the Bf-blender-cvs mailing list