[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24625] trunk/blender: Small UI Tweaks - Toolbar + Graph Editor:

Joshua Leung aligorith at gmail.com
Tue Nov 17 23:46:42 CET 2009


Revision: 24625
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24625
Author:   aligorith
Date:     2009-11-17 23:46:42 +0100 (Tue, 17 Nov 2009)

Log Message:
-----------
Small UI Tweaks - Toolbar + Graph Editor:
* "RNA Path" and "Array Index" for the active F-Curve in the Graph Editor are now shown in the properties region. These are greyed out unless the F-Curve cannot be evaluated, in which case they can be edited to make the F-Curve work again

* Made the Push and Relax operators in Pose Mode fit on a single row in the toolbar, since they're opposites of each other. 

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/space_view3d_toolbar.py
    trunk/blender/source/blender/editors/space_graph/graph_buttons.c

Modified: trunk/blender/release/scripts/ui/space_view3d_toolbar.py
===================================================================
--- trunk/blender/release/scripts/ui/space_view3d_toolbar.py	2009-11-17 22:19:48 UTC (rev 24624)
+++ trunk/blender/release/scripts/ui/space_view3d_toolbar.py	2009-11-17 22:46:42 UTC (rev 24625)
@@ -425,8 +425,9 @@
         
         col = layout.column(align=True)
         col.itemL(text="In-Between:")
-        col.itemO("pose.relax", text="Relax")
-        col.itemO("pose.push", text="Push")
+        row = col.row()
+        row.itemO("pose.push", text="Push")
+        row.itemO("pose.relax", text="Relax")
         col.itemO("pose.breakdown", text="Breakdowner")
         
         col = layout.column(align=True)

Modified: trunk/blender/source/blender/editors/space_graph/graph_buttons.c
===================================================================
--- trunk/blender/source/blender/editors/space_graph/graph_buttons.c	2009-11-17 22:19:48 UTC (rev 24624)
+++ trunk/blender/source/blender/editors/space_graph/graph_buttons.c	2009-11-17 22:46:42 UTC (rev 24625)
@@ -195,6 +195,12 @@
 		icon= getname_anim_fcurve(name, ale->id, fcu);
 		uiItemL(col, name, icon);
 		
+	/* RNA-Path Editing - only really should be enabled when things aren't working */
+	col= uiLayoutColumn(layout, 1);
+		uiLayoutSetEnabled(col, (fcu->flag & FCURVE_DISABLED)); 
+		uiItemR(col, "", ICON_RNA, &fcu_ptr, "rna_path", 0);
+		uiItemR(col, NULL, 0, &fcu_ptr, "array_index", 0);
+		
 	/* color settings */
 	col= uiLayoutColumn(layout, 1);
 		uiItemL(col, "Display Color:", 0);





More information about the Bf-blender-cvs mailing list