[Bf-blender-cvs] [2f2f14ffedf] sculpt-dev: Sculpt Expand: Enable gradient when enabling brush gradient

Pablo Dobarro noreply at git.blender.org
Sun Feb 7 18:02:41 CET 2021


Commit: 2f2f14ffedfddca3de87aa56491b404dad843877
Author: Pablo Dobarro
Date:   Sun Feb 7 17:53:38 2021 +0100
Branches: sculpt-dev
https://developer.blender.org/rB2f2f14ffedfddca3de87aa56491b404dad843877

Sculpt Expand: Enable gradient when enabling brush gradient

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

M	source/blender/editors/sculpt_paint/sculpt_expand.c

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

diff --git a/source/blender/editors/sculpt_paint/sculpt_expand.c b/source/blender/editors/sculpt_paint/sculpt_expand.c
index 37e90c722b7..2da3a2567e8 100644
--- a/source/blender/editors/sculpt_paint/sculpt_expand.c
+++ b/source/blender/editors/sculpt_paint/sculpt_expand.c
@@ -1293,6 +1293,9 @@ static int sculpt_expand_modal(bContext *C, wmOperator *op, const wmEvent *event
       }
       case SCULPT_EXPAND_MODAL_BRUSH_GRADIENT_TOGGLE: {
         expand_cache->brush_gradient = !expand_cache->brush_gradient;
+        if (expand_cache->brush_gradient) {
+            expand_cache->falloff_gradient = true;
+        }
         break;
       }
       case SCULPT_EXPAND_MODAL_SNAP_TOGGLE: {



More information about the Bf-blender-cvs mailing list