[Bf-blender-cvs] [801962e2b67] master: Fix T67813: Remove mask from Weight Paint

Antonioya noreply at git.blender.org
Mon Jul 29 12:12:59 CEST 2019


Commit: 801962e2b6779714917f1b1cf2cd6c161bd53855
Author: Antonioya
Date:   Sat Jul 27 20:44:24 2019 +0200
Branches: master
https://developer.blender.org/rB801962e2b6779714917f1b1cf2cd6c161bd53855

Fix T67813: Remove mask from Weight Paint

Weight Painting was using mask if "Selection Mask" in Sculpt Mode is turned on.

This can be quite confusing because the option to turn it off is not available in Weight Painting and the selection is also not visible.

Now the mask is not checked in weight paint mode.

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

M	source/blender/editors/gpencil/gpencil_brush.c

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

diff --git a/source/blender/editors/gpencil/gpencil_brush.c b/source/blender/editors/gpencil/gpencil_brush.c
index 2df5f6a0cec..35d33183c38 100644
--- a/source/blender/editors/gpencil/gpencil_brush.c
+++ b/source/blender/editors/gpencil/gpencil_brush.c
@@ -1477,7 +1477,7 @@ static bool gpsculpt_brush_do_stroke(tGP_BrushEditData *gso,
 
       /* Skip if neither one is selected
        * (and we are only allowed to edit/consider selected points) */
-      if (gso->settings->flag & GP_SCULPT_SETT_FLAG_SELECT_MASK) {
+      if ((gso->settings->flag & GP_SCULPT_SETT_FLAG_SELECT_MASK) && (!gso->is_weight_mode)) {
         if (!(pt1->flag & GP_SPOINT_SELECT) && !(pt2->flag & GP_SPOINT_SELECT)) {
           include_last = false;
           continue;



More information about the Bf-blender-cvs mailing list