[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46919] trunk/blender/release/scripts/ startup/bl_ui/properties_animviz.py: Motion Paths Gui - Restoring a " Calculate" button to the Motion Paths panel

Joshua Leung aligorith at gmail.com
Wed May 23 05:36:07 CEST 2012


Revision: 46919
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46919
Author:   aligorith
Date:     2012-05-23 03:36:03 +0000 (Wed, 23 May 2012)
Log Message:
-----------
Motion Paths Gui - Restoring a "Calculate" button to the Motion Paths panel

Iterating on previous design, a Calculate button is now present in this panel
again. Most people just wouldn't have a clue to try the toolbar...

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/properties_animviz.py

Modified: trunk/blender/release/scripts/startup/bl_ui/properties_animviz.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_animviz.py	2012-05-23 02:19:14 UTC (rev 46918)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_animviz.py	2012-05-23 03:36:03 UTC (rev 46919)
@@ -70,8 +70,12 @@
             else:
                 col.operator("object.paths_update", text="Update Paths", icon='OBJECT_DATA')
         else:
-            col.label(text="Not available yet...", icon='ERROR')
-            col.label(text="Calculate Paths first", icon='INFO')
+            sub = col.column(align=True)
+            sub.label(text="Nothing to show yet...", icon='ERROR')
+            if bones:
+                sub.operator("pose.paths_calculate", text="Calculate...", icon='BONE_DATA')
+            else:
+                sub.operator("object.paths_calculate", text="Calculate...", icon='OBJECT_DATA')
 
         # Display Settings
         split = layout.split()




More information about the Bf-blender-cvs mailing list