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:
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
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue