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
This commit is contained in:
Pablo Dobarro 2019-09-27 16:00:57 +02:00
parent 97f4d4c66e
commit 9df9fb3324
Notes: blender-bot 2023-02-14 05:24:36 +01:00
Referenced by issue #56497, (Dyntopo) Snake hook sculpt brush slips off and affects the part of the mesh behind
2 changed files with 2 additions and 4 deletions

View File

@ -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;

View File

@ -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;
}