diff options
author | William Reynish <billrey@me.com> | 2019-02-28 20:09:32 +0300 |
---|---|---|
committer | William Reynish <billrey@me.com> | 2019-02-28 20:14:48 +0300 |
commit | d3294fd93f5a5cc6536d688365efddffca78e870 (patch) | |
tree | 8172ebe793a22af5907589e877b37ed42ce42ff8 /release/scripts/startup/bl_ui/properties_grease_pencil_common.py | |
parent | 2215541967f6a476b9c0189d10c591cbc83879b3 (diff) |
UI: Contextual menus
-Rename 'Specials' menus to 'Context' menus for Grease Pencil
-Make Grease Pencil contextual menus follow the design of the regular contextual menus more
-Add more useful operators to the contextual menus in the paint modes
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_grease_pencil_common.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 11 |
1 files changed, 5 insertions, 6 deletions
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 2a4c4e94b0c..dd96df2ea65 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -617,22 +617,21 @@ class GPENCIL_MT_separate(Menu): class GPENCIL_MT_gpencil_draw_specials(Menu): - bl_label = "GPencil Draw Specials" + bl_label = "Draw Context Menu" def draw(self, context): layout = self.layout layout.operator_context = 'INVOKE_REGION_WIN' + layout.operator("gpencil.blank_frame_add") layout.operator("gpencil.frame_duplicate", text="Duplicate Active Frame") layout.operator("gpencil.frame_duplicate", text="Duplicate Active Frame All Layers").mode = 'ALL' layout.separator() - layout.operator("gpencil.primitive", text="Line", icon='IPO_CONSTANT').type = 'LINE' - layout.operator("gpencil.primitive", text="Rectangle", icon='UV_FACESEL').type = 'BOX' - layout.operator("gpencil.primitive", text="Circle", icon='ANTIALIASED').type = 'CIRCLE' - layout.operator("gpencil.primitive", text="Arc", icon='SPHERECURVE').type = 'ARC' - layout.operator("gpencil.primitive", text="Curve", icon='CURVE_BEZCURVE').type = 'CURVE' + + layout.operator("gpencil.active_frames_delete_all") + layout.operator("gpencil.delete", text="Delete Active Frame").type = 'FRAME' class GPENCIL_MT_gpencil_draw_delete(Menu): |