forked from blender/blender
realize-depth #5
@ -2187,6 +2187,7 @@ class VIEW3D_MT_paint_grease_pencil(Menu):
|
|||||||
layout.separator()
|
layout.separator()
|
||||||
|
|
||||||
layout.menu("VIEW3D_MT_edit_greasepencil_showhide")
|
layout.menu("VIEW3D_MT_edit_greasepencil_showhide")
|
||||||
|
layout.menu("VIEW3D_MT_edit_greasepencil_cleanup")
|
||||||
|
|
||||||
layout.separator()
|
layout.separator()
|
||||||
|
|
||||||
@ -5802,6 +5803,13 @@ class VIEW3D_MT_edit_greasepencil_showhide(Menu):
|
|||||||
layout.operator("grease_pencil.layer_hide", text="Hide Active Layer").unselected = False
|
layout.operator("grease_pencil.layer_hide", text="Hide Active Layer").unselected = False
|
||||||
layout.operator("grease_pencil.layer_hide", text="Hide Inactive Layers").unselected = True
|
layout.operator("grease_pencil.layer_hide", text="Hide Inactive Layers").unselected = True
|
||||||
|
|
||||||
|
class VIEW3D_MT_edit_greasepencil_cleanup(Menu):
|
||||||
|
bl_label = "Cleanup"
|
||||||
|
|
||||||
|
def draw(self, _context):
|
||||||
|
layout = self.layout
|
||||||
|
|
||||||
|
layout.operator("grease_pencil.clean_loose")
|
||||||
|
|
||||||
class VIEW3D_MT_edit_greasepencil(Menu):
|
class VIEW3D_MT_edit_greasepencil(Menu):
|
||||||
bl_label = "Grease Pencil"
|
bl_label = "Grease Pencil"
|
||||||
@ -5828,7 +5836,7 @@ class VIEW3D_MT_edit_greasepencil(Menu):
|
|||||||
|
|
||||||
layout.menu("VIEW3D_MT_edit_greasepencil_showhide")
|
layout.menu("VIEW3D_MT_edit_greasepencil_showhide")
|
||||||
layout.operator_menu_enum("grease_pencil.separate", "mode", text="Separate")
|
layout.operator_menu_enum("grease_pencil.separate", "mode", text="Separate")
|
||||||
layout.operator("grease_pencil.clean_loose")
|
layout.menu("VIEW3D_MT_edit_greasepencil_cleanup")
|
||||||
|
|
||||||
layout.separator()
|
layout.separator()
|
||||||
|
|
||||||
@ -8988,6 +8996,7 @@ classes = (
|
|||||||
VIEW3D_MT_edit_gpencil_delete,
|
VIEW3D_MT_edit_gpencil_delete,
|
||||||
VIEW3D_MT_edit_gpencil_showhide,
|
VIEW3D_MT_edit_gpencil_showhide,
|
||||||
VIEW3D_MT_edit_greasepencil_showhide,
|
VIEW3D_MT_edit_greasepencil_showhide,
|
||||||
|
VIEW3D_MT_edit_greasepencil_cleanup,
|
||||||
VIEW3D_MT_weight_gpencil,
|
VIEW3D_MT_weight_gpencil,
|
||||||
VIEW3D_MT_gpencil_animation,
|
VIEW3D_MT_gpencil_animation,
|
||||||
VIEW3D_MT_gpencil_simplify,
|
VIEW3D_MT_gpencil_simplify,
|
||||||
|
@ -1406,7 +1406,7 @@ static void GREASE_PENCIL_OT_clean_loose(wmOperatorType *ot)
|
|||||||
|
|
||||||
ot->invoke = WM_operator_props_popup_confirm;
|
ot->invoke = WM_operator_props_popup_confirm;
|
||||||
ot->exec = grease_pencil_clean_loose_exec;
|
ot->exec = grease_pencil_clean_loose_exec;
|
||||||
ot->poll = editable_grease_pencil_poll;
|
ot->poll = active_grease_pencil_layer_poll;
|
||||||
|
|
||||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user