diff options
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_animviz.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/release/scripts/startup/bl_ui/properties_animviz.py b/release/scripts/startup/bl_ui/properties_animviz.py index 44965a60489..28e456d023d 100644 --- a/release/scripts/startup/bl_ui/properties_animviz.py +++ b/release/scripts/startup/bl_ui/properties_animviz.py @@ -70,14 +70,10 @@ class MotionPathButtonsPanel: col = layout.column(align=True) - row = col.row(align=True) if bones: - row.operator("pose.paths_update", text="Update Paths", icon='BONE_DATA') - row.operator("pose.paths_clear", text="", icon='X') + col.operator("pose.paths_update", text="Update Paths", icon='BONE_DATA') else: - row.operator("object.paths_update", text="Update Paths", icon='OBJECT_DATA') - row.operator("object.paths_clear", text="", icon='X') - col.operator("object.paths_update_visible", text="Update All Paths", icon='WORLD') + col.operator("object.paths_update", text="Update Paths", icon='OBJECT_DATA') else: col = layout.column(align=True) col.label(text="Nothing to show yet...", icon='ERROR') @@ -86,7 +82,13 @@ class MotionPathButtonsPanel: col.operator("pose.paths_calculate", text="Calculate...", icon='BONE_DATA') else: col.operator("object.paths_calculate", text="Calculate...", icon='OBJECT_DATA') - col.operator("object.paths_update_visible", text="Update All Paths", icon='WORLD') + + row = col.row(align=True) + row.operator("object.paths_update_visible", text="Update All Paths", icon='WORLD') + if bones: + row.operator("pose.paths_clear", text="", icon='X') + else: + row.operator("object.paths_clear", text="", icon='X') class MotionPathButtonsPanel_display: |