Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-10-10 03:34:52 +0400
committerJoshua Leung <aligorith@gmail.com>2009-10-10 03:34:52 +0400
commitf9bb4e3195d6b1c6be31306d83fe15d7b034a2cb (patch)
treebbfd4ffcaee46d471e70170def64acb233a1bb80 /release/scripts
parentfb561fb4c8849523ce11483f8f8d6a2c4f8aef36 (diff)
* Added Grease Pencil Operator buttons to the Toolshelf
* Cancelling loopcuts with EscKey or RMB now works again.
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/ui/space_view3d_toolbar.py48
1 files changed, 48 insertions, 0 deletions
diff --git a/release/scripts/ui/space_view3d_toolbar.py b/release/scripts/ui/space_view3d_toolbar.py
index ab1e161b928..d93a2d26040 100644
--- a/release/scripts/ui/space_view3d_toolbar.py
+++ b/release/scripts/ui/space_view3d_toolbar.py
@@ -39,6 +39,12 @@ class VIEW3D_PT_tools_objectmode(View3DPanel):
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")
col.itemO("screen.repeat_history", text="History...")
@@ -86,6 +92,12 @@ class VIEW3D_PT_tools_meshedit(View3DPanel):
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")
col.itemO("screen.repeat_history", text="History...")
@@ -127,6 +139,12 @@ class VIEW3D_PT_tools_curveedit(View3DPanel):
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")
col.itemO("screen.repeat_history", text="History...")
@@ -160,6 +178,12 @@ class VIEW3D_PT_tools_surfaceedit(View3DPanel):
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")
col.itemO("screen.repeat_history", text="History...")
@@ -217,6 +241,12 @@ class VIEW3D_PT_tools_armatureedit(View3DPanel):
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")
col.itemO("screen.repeat_history", text="History...")
@@ -238,6 +268,12 @@ class VIEW3D_PT_tools_mballedit(View3DPanel):
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")
col.itemO("screen.repeat_history", text="History...")
@@ -259,6 +295,12 @@ class VIEW3D_PT_tools_latticeedit(View3DPanel):
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")
col.itemO("screen.repeat_history", text="History...")
@@ -303,6 +345,12 @@ class VIEW3D_PT_tools_posemode(View3DPanel):
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")
col.itemO("screen.repeat_history", text="History...")