* Added Grease Pencil Operator buttons to the Toolshelf

* Cancelling loopcuts with EscKey or RMB now works again.
This commit is contained in:
Joshua Leung
2009-10-09 23:34:52 +00:00
parent fb561fb4c8
commit f9bb4e3195
2 changed files with 61 additions and 3 deletions

View File

@@ -38,6 +38,12 @@ class VIEW3D_PT_tools_objectmode(View3DPanel):
col.itemO("anim.insert_keyframe_menu", text="Insert")
col.itemO("anim.delete_keyframe_v3d", text="Remove")
col = layout.column(align=True)
col.itemL(text="Grease Pencil:")
col.item_enumO("gpencil.draw", "mode", 'DRAW', text="Draw Freehand")
col.item_enumO("gpencil.draw", "mode", 'DRAW_STRAIGHT', text="Straight Line")
col.item_enumO("gpencil.draw", "mode", 'ERASER', text="Eraser")
col = layout.column(align=True)
col.itemL(text="Repeat:")
col.itemO("screen.repeat_last")
@@ -85,6 +91,12 @@ class VIEW3D_PT_tools_meshedit(View3DPanel):
col.itemO("mesh.uvs_rotate")
col.itemO("mesh.uvs_mirror")
col = layout.column(align=True)
col.itemL(text="Grease Pencil:")
col.item_enumO("gpencil.draw", "mode", 'DRAW', text="Draw Freehand")
col.item_enumO("gpencil.draw", "mode", 'DRAW_STRAIGHT', text="Straight Line")
col.item_enumO("gpencil.draw", "mode", 'ERASER', text="Eraser")
col = layout.column(align=True)
col.itemL(text="Repeat:")
col.itemO("screen.repeat_last")
@@ -126,6 +138,12 @@ class VIEW3D_PT_tools_curveedit(View3DPanel):
col.itemO("curve.extrude")
col.itemO("curve.subdivide")
col = layout.column(align=True)
col.itemL(text="Grease Pencil:")
col.item_enumO("gpencil.draw", "mode", 'DRAW', text="Draw Freehand")
col.item_enumO("gpencil.draw", "mode", 'DRAW_STRAIGHT', text="Straight Line")
col.item_enumO("gpencil.draw", "mode", 'ERASER', text="Eraser")
col = layout.column(align=True)
col.itemL(text="Repeat:")
col.itemO("screen.repeat_last")
@@ -159,6 +177,12 @@ class VIEW3D_PT_tools_surfaceedit(View3DPanel):
col.itemO("curve.extrude")
col.itemO("curve.subdivide")
col = layout.column(align=True)
col.itemL(text="Grease Pencil:")
col.item_enumO("gpencil.draw", "mode", 'DRAW', text="Draw Freehand")
col.item_enumO("gpencil.draw", "mode", 'DRAW_STRAIGHT', text="Straight Line")
col.item_enumO("gpencil.draw", "mode", 'ERASER', text="Eraser")
col = layout.column(align=True)
col.itemL(text="Repeat:")
col.itemO("screen.repeat_last")
@@ -216,6 +240,12 @@ class VIEW3D_PT_tools_armatureedit(View3DPanel):
col.itemL(text="Modeling:")
col.itemO("armature.extrude")
col = layout.column(align=True)
col.itemL(text="Grease Pencil:")
col.item_enumO("gpencil.draw", "mode", 'DRAW', text="Draw Freehand")
col.item_enumO("gpencil.draw", "mode", 'DRAW_STRAIGHT', text="Straight Line")
col.item_enumO("gpencil.draw", "mode", 'ERASER', text="Eraser")
col = layout.column(align=True)
col.itemL(text="Repeat:")
col.itemO("screen.repeat_last")
@@ -237,6 +267,12 @@ class VIEW3D_PT_tools_mballedit(View3DPanel):
col.itemO("tfm.rotate")
col.itemO("tfm.resize", text="Scale")
col = layout.column(align=True)
col.itemL(text="Grease Pencil:")
col.item_enumO("gpencil.draw", "mode", 'DRAW', text="Draw Freehand")
col.item_enumO("gpencil.draw", "mode", 'DRAW_STRAIGHT', text="Straight Line")
col.item_enumO("gpencil.draw", "mode", 'ERASER', text="Eraser")
col = layout.column(align=True)
col.itemL(text="Repeat:")
col.itemO("screen.repeat_last")
@@ -258,6 +294,12 @@ class VIEW3D_PT_tools_latticeedit(View3DPanel):
col.itemO("tfm.rotate")
col.itemO("tfm.resize", text="Scale")
col = layout.column(align=True)
col.itemL(text="Grease Pencil:")
col.item_enumO("gpencil.draw", "mode", 'DRAW', text="Draw Freehand")
col.item_enumO("gpencil.draw", "mode", 'DRAW_STRAIGHT', text="Straight Line")
col.item_enumO("gpencil.draw", "mode", 'ERASER', text="Eraser")
col = layout.column(align=True)
col.itemL(text="Repeat:")
col.itemO("screen.repeat_last")
@@ -302,6 +344,12 @@ class VIEW3D_PT_tools_posemode(View3DPanel):
col.itemO("pose.push", text="Push")
col.itemO("pose.breakdown", text="Breakdowner")
col = layout.column(align=True)
col.itemL(text="Grease Pencil:")
col.item_enumO("gpencil.draw", "mode", 'DRAW', text="Draw Freehand")
col.item_enumO("gpencil.draw", "mode", 'DRAW_STRAIGHT', text="Straight Line")
col.item_enumO("gpencil.draw", "mode", 'ERASER', text="Eraser")
col = layout.column(align=True)
col.itemL(text="Repeat:")
col.itemO("screen.repeat_last")