Add GPencil Copy/Paste to secondary pie + toolshelf
authorJoshua Leung <aligorith@gmail.com>
Wed, 31 Dec 2014 23:49:24 +0000 (12:49 +1300)
committerJoshua Leung <aligorith@gmail.com>
Wed, 31 Dec 2014 23:50:00 +0000 (12:50 +1300)
release/scripts/startup/bl_ui/properties_grease_pencil_common.py

index 6b4bccda7d8c80130c8889f50a583e58880f309b..81079edd93876c71463bf14727f3c0c63012f884 100644 (file)
@@ -130,6 +130,11 @@ class GreasePencilStrokeEditPanel():
         col.separator()
 
         col.label(text="Edit:")
+        row = col.row(align=True)
+        row.active = edit_ok
+        row.operator("gpencil.copy", text="Copy")
+        row.operator("gpencil.paste", text="Paste")
+
         subcol = col.column(align=True)
         subcol.active = edit_ok
         subcol.operator("gpencil.delete", text="Delete")
@@ -281,15 +286,20 @@ class GPENCIL_PIE_tools_more(Menu):
         pie = layout.menu_pie()
         # gpd = context.gpencil_data
 
-        pie.operator("gpencil.select_more", icon='ZOOMIN')
-        pie.operator("gpencil.select_less", icon='ZOOMOUT')
+        col = pie.column(align=True)
+        col.operator("gpencil.copy", icon='COPYDOWN', text="Copy")
+        col.operator("gpencil.paste", icon='PASTEDOWN', text="Paste")
+
+        col = pie.column(align=True)
+        col.operator("gpencil.select_more", icon='ZOOMIN')
+        col.operator("gpencil.select_less", icon='ZOOMOUT')
 
         pie.operator("transform.mirror", icon='MOD_MIRROR').gpencil_strokes = True
         pie.operator("transform.bend", icon='MOD_SIMPLEDEFORM').gpencil_strokes = True
         pie.operator("transform.shear", icon='MOD_TRIANGULATE').gpencil_strokes = True
         pie.operator("transform.tosphere", icon='MOD_MULTIRES').gpencil_strokes = True
 
-        pie.operator("gpencil.convert", icon='OUTLINER_OB_CURVE')
+        pie.operator("gpencil.convert", icon='OUTLINER_OB_CURVE', text="Convert...")
         pie.operator("wm.call_menu_pie", text="Back to Main Palette...").name = "GPENCIL_PIE_tool_palette"