diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-01-26 09:41:44 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-01-26 09:41:44 +0300 |
commit | 78fb0a42b74ff40f76acaf56e1b58273af1aa2db (patch) | |
tree | a147362701343aa71173390077effbd887b1f34b /release | |
parent | c47eb461ac58aca2568172e9605ffea20b504b81 (diff) |
Adding Calculate/Clear Motion Path operator buttons to toolbar. I'm
currently reviewing the UI for this, so more changes related to this
should be coming...
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/ui/space_view3d_toolbar.py | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/release/scripts/ui/space_view3d_toolbar.py b/release/scripts/ui/space_view3d_toolbar.py index 8d9d1212eee..9261324366b 100644 --- a/release/scripts/ui/space_view3d_toolbar.py +++ b/release/scripts/ui/space_view3d_toolbar.py @@ -34,6 +34,13 @@ def draw_repeat_tools(context, layout): col.operator("screen.repeat_last") col.operator("screen.repeat_history", text="History...") +# Keyframing tools +def draw_keyframing_tools(context, layout): + col = layout.column(align=True) + col.label(text="Keyframes:") + row = col.row() + row.operator("anim.keyframe_insert_menu", text="Insert") + row.operator("anim.keyframe_delete_v3d", text="Remove") # Grease Pencil tools def draw_gpencil_tools(context, layout): @@ -81,11 +88,13 @@ class VIEW3D_PT_tools_objectmode(View3DPanel, bpy.types.Panel): col.label(text="Shading:") col.operator("object.shade_smooth", text="Smooth") col.operator("object.shade_flat", text="Flat") - + + draw_keyframing_tools(context, layout) + col = layout.column(align=True) - col.label(text="Keyframes:") - col.operator("anim.keyframe_insert_menu", text="Insert") - col.operator("anim.keyframe_delete_v3d", text="Remove") + col.label(text="Motion Paths:") + col.operator("object.paths_calculate", text="Calculate Paths") + col.operator("object.paths_clear", text="Clear Paths") draw_repeat_tools(context, layout) @@ -396,11 +405,12 @@ class VIEW3D_PT_tools_posemode(View3DPanel, bpy.types.Panel): col = layout.column(align=True) col.operator("poselib.pose_add", text="Add To Library") + draw_keyframing_tools(context, layout) + col = layout.column(align=True) - col.label(text="Keyframes:") - - col.operator("anim.keyframe_insert_menu", text="Insert") - col.operator("anim.keyframe_delete_v3d", text="Remove") + col.label(text="Motion Paths:") + col.operator("pose.paths_calculate", text="Calculate Paths") + col.operator("pose.paths_clear", text="Clear Paths") draw_repeat_tools(context, layout) |