Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2012-05-23 07:36:03 +0400
committerJoshua Leung <aligorith@gmail.com>2012-05-23 07:36:03 +0400
commitc319d999ef4d6acca0a3473043b07f0efb395fb5 (patch)
treea6fd81d4a502bda24a4f945df5ed00ba8154a6d2 /release/scripts/startup/bl_ui/properties_animviz.py
parentdab1d8e4874564f182d7b73b603f66a4f34565ad (diff)
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...
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_animviz.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_animviz.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_animviz.py b/release/scripts/startup/bl_ui/properties_animviz.py
index 3c1f910814a..3011f55fcb3 100644
--- a/release/scripts/startup/bl_ui/properties_animviz.py
+++ b/release/scripts/startup/bl_ui/properties_animviz.py
@@ -70,8 +70,12 @@ class MotionPathButtonsPanel():
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()