GPencil: Draw Mode menu update

- Rename menu 'Stroke' to 'Draw': the menu includes not only strokes related things and the name follows the usage in other paint modes in Blender.
- Remove duplicate animation operators.
- Menu updates to include clean up and layers operators that don't need previous selection.

{F7705120}

Reviewers: antoniov, pepeland, billreynish

Tags: #bf_blender, #grease_pencil

Differential Revision: https://developer.blender.org/D5599
This commit is contained in:
Antonio Vazquez 2019-08-26 23:08:24 +02:00
parent 8e4f3b2bb0
commit 0067b3b09b
2 changed files with 15 additions and 6 deletions

View File

@ -606,16 +606,25 @@ class GPENCIL_MT_cleanup(Menu):
bl_label = "Clean Up"
def draw(self, _context):
ob = _context.active_object
layout = self.layout
layout.operator("gpencil.frame_clean_loose", text="Delete Loose Points")
layout.operator("gpencil.stroke_merge_by_distance", text="Merge by Distance")
if ob.mode != 'PAINT_GPENCIL':
layout.operator("gpencil.stroke_merge_by_distance", text="Merge by Distance")
layout.separator()
layout.operator("gpencil.frame_clean_fill", text="Boundary Strokes").mode = 'ACTIVE'
layout.operator("gpencil.frame_clean_fill", text="Boundary Strokes all Frames").mode = 'ALL'
layout.separator()
layout.operator("gpencil.reproject")
if ob.mode != 'PAINT_GPENCIL':
layout.separator()
layout.operator("gpencil.reproject")
class GPENCIL_UL_annotation_layer(UIList):

View File

@ -4389,7 +4389,7 @@ class VIEW3D_MT_gpencil_simplify(Menu):
class VIEW3D_MT_paint_gpencil(Menu):
bl_label = "Strokes"
bl_label = "Draw"
def draw(self, _context):
@ -4400,8 +4400,8 @@ class VIEW3D_MT_paint_gpencil(Menu):
layout.separator()
layout.operator("gpencil.delete", text="Delete Frame").type = 'FRAME'
layout.operator("gpencil.active_frames_delete_all")
layout.menu("VIEW3D_MT_edit_gpencil_showhide")
layout.menu("GPENCIL_MT_cleanup")
class VIEW3D_MT_assign_material(Menu):