[Bf-blender-cvs] [af3f0bf9d4f] master: Fix T68507: Gpencil: Show always the Select Menu in Edit Mode

Matias Mendiola noreply at git.blender.org
Mon Aug 12 23:22:30 CEST 2019


Commit: af3f0bf9d4f0d9f2be0404da5d7746eb8a57c176
Author: Matias Mendiola
Date:   Mon Aug 12 23:21:58 2019 +0200
Branches: master
https://developer.blender.org/rBaf3f0bf9d4f0d9f2be0404da5d7746eb8a57c176

Fix T68507: Gpencil: Show always the Select Menu in Edit Mode

In Grease Pencil Edit Mode the Select menu should always be visible. Right now the menu visibility is controlled by the Selection Mask button next interpolate popover

Differential Revision: https://developer.blender.org/D5466

===================================================================

M	release/scripts/startup/bl_ui/space_view3d.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 80725358d88..85b55378f1d 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -732,7 +732,9 @@ class VIEW3D_MT_editor_menus(Menu):
         # Select Menu
         if gp_edit:
             if mode_string not in {'PAINT_GPENCIL', 'WEIGHT_GPENCIL'}:
-                if ts.gpencil_sculpt.use_select_mask:
+                if mode_string == 'SCULPT_GPENCIL' and ts.gpencil_sculpt.use_select_mask:
+                    layout.menu("VIEW3D_MT_select_gpencil")
+                elif mode_string == 'EDIT_GPENCIL':
                     layout.menu("VIEW3D_MT_select_gpencil")
         elif mode_string in {'PAINT_WEIGHT', 'PAINT_VERTEX', 'PAINT_TEXTURE'}:
             mesh = obj.data



More information about the Bf-blender-cvs mailing list