GPencil: UI menu cleanup

Remove duplicate words Stroke and Point already in menu header.

Reviewed by: @mendio,  @filedescriptor
This commit is contained in:
Antonio Vazquez 2021-03-12 19:12:11 +01:00
parent 476be3746e
commit 5788f608d3
1 changed files with 18 additions and 18 deletions

View File

@ -5013,7 +5013,7 @@ class VIEW3D_MT_edit_gpencil_stroke(Menu):
layout.menu("GPENCIL_MT_move_to_layer")
layout.menu("VIEW3D_MT_assign_material")
layout.operator("gpencil.set_active_material", text="Set as Active Material")
layout.operator_menu_enum("gpencil.stroke_arrange", "direction", text="Arrange Strokes")
layout.operator_menu_enum("gpencil.stroke_arrange", "direction", text="Arrange")
layout.separator()
@ -5024,7 +5024,7 @@ class VIEW3D_MT_edit_gpencil_stroke(Menu):
layout.operator("gpencil.stroke_cyclical_set", text="Toggle Cyclic").type = 'TOGGLE'
layout.operator_menu_enum("gpencil.stroke_caps_set", text="Toggle Caps", property="type")
layout.operator("gpencil.stroke_flip", text="Switch Direction")
layout.prop(settings, "use_scale_thickness")
layout.prop(settings, "use_scale_thickness", text="Scale Thickness")
layout.separator()
layout.operator("gpencil.reset_transform_fill", text="Reset Fill Transform")
@ -5036,15 +5036,15 @@ class VIEW3D_MT_edit_gpencil_point(Menu):
def draw(self, _context):
layout = self.layout
layout.operator("gpencil.extrude_move", text="Extrude Points")
layout.operator("gpencil.extrude_move", text="Extrude")
layout.separator()
layout.operator("gpencil.stroke_smooth", text="Smooth Points").only_selected = True
layout.operator("gpencil.stroke_smooth", text="Smooth").only_selected = True
layout.separator()
layout.operator("gpencil.stroke_merge", text="Merge Points")
layout.operator("gpencil.stroke_merge", text="Merge")
# TODO: add new RIP operator
@ -7048,12 +7048,12 @@ class VIEW3D_MT_gpencil_edit_context_menu(Menu):
col.separator()
col.operator("gpencil.extrude_move", text="Extrude Points")
col.operator("gpencil.extrude_move", text="Extrude")
col.separator()
# Deform Operators
col.operator("gpencil.stroke_smooth", text="Smooth Points").only_selected = True
col.operator("gpencil.stroke_smooth", text="Smooth").only_selected = True
col.operator("transform.bend", text="Bend")
col.operator("transform.shear", text="Shear")
col.operator("transform.tosphere", text="To Sphere")
@ -7061,8 +7061,8 @@ class VIEW3D_MT_gpencil_edit_context_menu(Menu):
col.separator()
col.menu("VIEW3D_MT_mirror", text="Mirror Points")
col.menu("GPENCIL_MT_snap", text="Snap Points")
col.menu("VIEW3D_MT_mirror", text="Mirror")
col.menu("GPENCIL_MT_snap", text="Snap")
col.separator()
@ -7075,15 +7075,15 @@ class VIEW3D_MT_gpencil_edit_context_menu(Menu):
col.separator()
# Removal Operators
col.operator("gpencil.stroke_merge", text="Merge Points")
col.operator("gpencil.stroke_merge", text="Merge")
col.operator("gpencil.stroke_merge_by_distance").use_unselected = False
col.operator("gpencil.stroke_split", text="Split")
col.operator("gpencil.stroke_separate", text="Separate").mode = 'POINT'
col.separator()
col.operator("gpencil.delete", text="Delete Points").type = 'POINTS'
col.operator("gpencil.dissolve", text="Dissolve Points").type = 'POINTS'
col.operator("gpencil.delete", text="Delete").type = 'POINTS'
col.operator("gpencil.dissolve", text="Dissolve").type = 'POINTS'
col.operator("gpencil.dissolve", text="Dissolve Between").type = 'BETWEEN'
col.operator("gpencil.dissolve", text="Dissolve Unselected").type = 'UNSELECT'
@ -7100,7 +7100,7 @@ class VIEW3D_MT_gpencil_edit_context_menu(Menu):
col.separator()
col.operator("gpencil.stroke_smooth", text="Smooth Stroke").only_selected = False
col.operator("gpencil.stroke_smooth", text="Smooth").only_selected = False
col.operator("transform.transform", text="Shrink/Fatten").mode = 'GPENCIL_SHRINKFATTEN'
col.separator()
@ -7109,12 +7109,12 @@ class VIEW3D_MT_gpencil_edit_context_menu(Menu):
col.menu("GPENCIL_MT_move_to_layer")
col.menu("VIEW3D_MT_assign_material")
col.operator("gpencil.set_active_material", text="Set as Active Material")
col.operator_menu_enum("gpencil.stroke_arrange", "direction", text="Arrange Strokes")
col.operator_menu_enum("gpencil.stroke_arrange", "direction", text="Arrange")
col.separator()
col.menu("VIEW3D_MT_mirror", text="Mirror Stroke")
col.menu("VIEW3D_MT_snap", text="Snap Stroke")
col.menu("VIEW3D_MT_mirror", text="Mirror")
col.menu("VIEW3D_MT_snap", text="Snap")
col.separator()
@ -7134,11 +7134,11 @@ class VIEW3D_MT_gpencil_edit_context_menu(Menu):
col.separator()
col.operator("gpencil.delete", text="Delete Strokes").type = 'STROKES'
col.operator("gpencil.delete", text="Delete").type = 'STROKES'
col.separator()
col.operator("gpencil.reproject", text="Reproject Strokes")
col.operator("gpencil.reproject", text="Reproject")
def draw_gpencil_layer_active(context, layout):