GPencil: Include various new operators into the 3D View menus too
Quite a few of the operators added for 2.78 were not included in the menus
This commit is contained in:
@@ -3053,11 +3053,18 @@ class VIEW3D_MT_edit_gpencil(Menu):
|
||||
layout.separator()
|
||||
|
||||
layout.menu("VIEW3D_MT_object_animation") # NOTE: provides keyingset access...
|
||||
layout.menu("VIEW3D_MT_edit_gpencil_interpolate")
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.menu("VIEW3D_MT_edit_gpencil_delete")
|
||||
layout.operator("gpencil.duplicate_move", text="Duplicate")
|
||||
layout.operator("gpencil.stroke_subdivide", text="Subdivide")
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.operator_menu_enum("gpencil.stroke_join", "type", text="Join...")
|
||||
layout.operator("gpencil.stroke_flip", text="Flip Direction")
|
||||
|
||||
layout.separator()
|
||||
|
||||
@@ -3077,6 +3084,11 @@ class VIEW3D_MT_edit_gpencil(Menu):
|
||||
layout.separator()
|
||||
|
||||
layout.operator_menu_enum("gpencil.move_to_layer", "layer", text="Move to Layer")
|
||||
layout.operator("gpencil.stroke_change_color", text="Move to Color")
|
||||
layout.operator_menu_enum("gpencil.stroke_arrange", "direction", text="Arrange Strokes...")
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.operator_menu_enum("gpencil.convert", "type", text="Convert to Geometry...")
|
||||
|
||||
|
||||
@@ -3097,6 +3109,20 @@ class VIEW3D_MT_edit_gpencil_transform(Menu):
|
||||
layout.operator("transform.tosphere", text="To Sphere")
|
||||
layout.operator("transform.transform", text="Shrink Fatten").mode = 'GPENCIL_SHRINKFATTEN'
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.operator("gpencil.reproject")
|
||||
|
||||
|
||||
class VIEW3D_MT_edit_gpencil_interpolate(Menu):
|
||||
bl_label = "Interpolate"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
layout.operator("gpencil.interpolate", text="Interpolate")
|
||||
layout.operator("gpencil.interpolate_sequence", text="Sequence")
|
||||
|
||||
|
||||
# ********** Panel **********
|
||||
|
||||
|
||||
Reference in New Issue
Block a user