diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-06-04 01:50:06 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-06-04 19:05:46 +0300 |
commit | f2a0532111b6c176db4a28d5a3187858e4afc820 (patch) | |
tree | cb5a402706902c8a714c90e6cea6666151eac3a6 /source/blender | |
parent | 15ed2f841cdc40e489731dcae5a6aa296cce785f (diff) |
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
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |