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...
This commit is contained in:
2011-01-26 06:41:44 +00:00
parent c47eb461ac
commit 78fb0a42b7

View File

@@ -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)