Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_grease_pencil_common.py
| Context not available. | |||||
| class GPENCIL_MT_gpencil_draw_delete(Menu): | class GPENCIL_MT_gpencil_draw_delete(Menu): | ||||
| bl_label = "GPencil Draw Delete" | bl_label = "Delete" | ||||
| def draw(self, _context): | def draw(self, _context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.operator_context = 'INVOKE_REGION_WIN' | layout.operator_context = 'INVOKE_REGION_WIN' | ||||
| layout.operator("gpencil.active_frames_delete_all", text="Delete Frame") | layout.operator("gpencil.delete", text="Delete Active Keyframe (Active Layer)").type = 'FRAME' | ||||
| layout.operator("gpencil.active_frames_delete_all", text="Delete Active Keyframes (All Layers)") | |||||
| class GPENCIL_MT_cleanup(Menu): | class GPENCIL_MT_cleanup(Menu): | ||||
| Context not available. | |||||