Fix: Clay Thumb front_angle can be NaN

Introduced in 4c38327ea2

Pull Request: https://projects.blender.org/blender/blender/pulls/138573
This commit is contained in:
Sean Kim
2025-05-08 01:10:45 +02:00
committed by Sean Kim
parent d2f6514686
commit 0f10ccd6b5

View File

@@ -337,7 +337,7 @@ struct StrokeCache {
/* Clay Thumb brush */
struct {
/* Angle of the front tilting plane of the brush to simulate clay accumulation. */
float front_angle;
float front_angle = 0.0f;
/* Stores the last 10 pressure samples to get a stabilized strength and radius variation. */
std::array<float, 10> pressure_stabilizer;
int stabilizer_index = 0;