[Bf-blender-cvs] [a38654594da] sculpt-dev: Sculpt: fix change in accumulate setting now applying until next stroke.

Joseph Eagar noreply at git.blender.org
Wed Sep 29 10:20:18 CEST 2021


Commit: a38654594da056a2930fd5907d89200622053ddb
Author: Joseph Eagar
Date:   Wed Sep 29 01:19:50 2021 -0700
Branches: sculpt-dev
https://developer.blender.org/rBa38654594da056a2930fd5907d89200622053ddb

Sculpt: fix change in accumulate setting now
        applying until next stroke.

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

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

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

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 4188b14897d..7eef928f268 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -10494,7 +10494,7 @@ static void sculpt_update_cache_invariants(
   }
 
   if (SCULPT_TOOL_HAS_ACCUMULATE(brush->sculpt_tool)) {
-    if (!(brush->flag & BRUSH_ACCUMULATE)) {
+    if (!(BRUSHSET_GET_INT(brush->channels, accumulate, &ss->cache->input_mapping))) {
       cache->original = true;
       if (brush->sculpt_tool == SCULPT_TOOL_DRAW_SHARP) {
         cache->original = false;



More information about the Bf-blender-cvs mailing list