[Bf-blender-cvs] [476c0eab4a8] master: Fix T74315: Cloth brush breaks orbit around selection

Jacques Lucke noreply at git.blender.org
Wed Mar 11 10:33:48 CET 2020


Commit: 476c0eab4a845581b765b75b9b8d1c3cde1949ba
Author: Jacques Lucke
Date:   Wed Mar 11 10:30:52 2020 +0100
Branches: master
https://developer.blender.org/rB476c0eab4a845581b765b75b9b8d1c3cde1949ba

Fix T74315: Cloth brush breaks orbit around selection

Reviewers: pablodp606

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

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

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 b25cdbe39c1..5a830a90092 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -7030,7 +7030,9 @@ static void sculpt_update_cache_variants(bContext *C, Sculpt *sd, Object *ob, Po
 
   if (cache->first_time ||
       !((brush->flag & BRUSH_ANCHORED) || (brush->sculpt_tool == SCULPT_TOOL_SNAKE_HOOK) ||
-        (brush->sculpt_tool == SCULPT_TOOL_ROTATE))) {
+        (brush->sculpt_tool == SCULPT_TOOL_ROTATE) ||
+        (brush->sculpt_tool == SCULPT_TOOL_CLOTH &&
+         brush->cloth_deform_type == BRUSH_CLOTH_DEFORM_GRAB))) {
     RNA_float_get_array(ptr, "location", cache->true_location);
   }



More information about the Bf-blender-cvs mailing list