Commit: f2a0532111b6c176db4a28d5a3187858e4afc820
Author: Pablo Dobarro
Date:   Thu Jun 4 00:50:06 2020 +0200
Branches: master
https://developer.blender.org/rBf2a0532111b6c176db4a28d5a3187858e4afc820

Disable gravity in Draw Face Sets brush

Applying gravity to this brush does not make much sense and undo/redo
won't work correctly as it uses a different undo type.

Reviewed By: sergey

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

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

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 b742ce91dd9..b4ae9c96ba7 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -5486,7 +5486,8 @@ static void do_brush_action(Sculpt *sd, Object *ob, Brush 
*brush, UnifiedPaintSe
     }
 
     /* The cloth brush adds the gravity as a regular force and it is processed 
in the solver. */
-    if (ss->cache->supports_gravity && brush->sculpt_tool != 
SCULPT_TOOL_CLOTH) {
+    if (ss->cache->supports_gravity &&
+        !ELEM(brush->sculpt_tool, SCULPT_TOOL_CLOTH, 
SCULPT_TOOL_DRAW_FACE_SETS)) {
       do_gravity(sd, ob, nodes, totnode, sd->gravity_factor);
     }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to