diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2019-09-27 17:00:57 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2019-09-27 18:48:28 +0300 |
commit | 9df9fb33244889c37b9bfd5ef938c96f27144fee (patch) | |
tree | 2d7555aaabe7298415032053f2e63ffa914a1260 /source | |
parent | 97f4d4c66ebb51608be11c6615a85164a4c2b408 (diff) |
Fix T56497: Snake hook sculpt brush slips off and affects the part of the mesh behind
We should not be updating the cache true location there.
This commit also fixes the snake hook default alpha.
Reviewed By: brecht
Maniphest Tasks: T56497
Differential Revision: https://developer.blender.org/D5915
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 2 | ||||
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index 4df5eb6f263..e697b548678 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -923,6 +923,8 @@ void BKE_brush_sculpt_reset(Brush *br) br->alpha = 0.7f; break; case SCULPT_TOOL_SNAKE_HOOK: + br->alpha = 1.0f; + break; case SCULPT_TOOL_THUMB: br->size = 75; br->flag &= ~BRUSH_ALPHA_PRESSURE; diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 4bd2fe192f1..5a5d29806d7 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -6517,10 +6517,6 @@ bool sculpt_stroke_get_location(bContext *C, float out[3], const float mouse[2]) } } - if (cache && hit) { - copy_v3_v3(cache->true_location, out); - } - return hit; } |