diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py index 46e969b3959..60a8418fed6 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -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): diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 0433ef10ecf..33b950ab468 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -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):