Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2020-10-28 17:13:36 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-10-29 11:47:05 +0300
commit440ed3ade884a4c13fe6ad2324b99e0bfcb426d9 (patch)
tree76853e5097e63978aef9eb38a10b4c85b627a3dd /source/blender/editors/sculpt_paint/sculpt.c
parent110d6a5130d4fc6bcaa4bb7a311d7819f63d681d (diff)
Fix T82188: Sculpt Grab Silhouette and symmetry fails
Wasnt checking the symmetrized 'grab_delta_symmetry' so result could flip around. Maniphest Tasks: T82188 Differential Revision: https://developer.blender.org/D9373
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index fafa87e910c..74a54f9f6b7 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -3828,7 +3828,7 @@ static void do_grab_brush_task_cb_ex(void *__restrict userdata,
if (grab_silhouette) {
float silhouette_test_dir[3];
normalize_v3_v3(silhouette_test_dir, grab_delta);
- if (dot_v3v3(ss->cache->initial_normal, ss->cache->grab_delta) < 0.0f) {
+ if (dot_v3v3(ss->cache->initial_normal, ss->cache->grab_delta_symmetry) < 0.0f) {
mul_v3_fl(silhouette_test_dir, -1.0f);
}
float vno[3];