Bugfix [#32754] Clear Motion paths button not available on Motion paths panel

On second thought, perhaps it is more convenient/natural if this was shown in
both places, given that many
people may only find the motion paths options through the UI now.
This commit is contained in:
Joshua Leung
2012-10-04 11:05:48 +00:00
parent d2833d9f0f
commit b8231620a5

View File

@@ -65,10 +65,13 @@ class MotionPathButtonsPanel():
sub.prop(mpath, "frame_start", text="From")
sub.prop(mpath, "frame_end", text="To")
sub = col.row(align=True)
if bones:
col.operator("pose.paths_update", text="Update Paths", icon='BONE_DATA')
sub.operator("pose.paths_update", text="Update Paths", icon='BONE_DATA')
sub.operator("pose.paths_clear", text="", icon='X')
else:
col.operator("object.paths_update", text="Update Paths", icon='OBJECT_DATA')
sub.operator("object.paths_update", text="Update Paths", icon='OBJECT_DATA')
sub.operator("object.paths_clear", text="", icon='X')
else:
sub = col.column(align=True)
sub.label(text="Nothing to show yet...", icon='ERROR')