Cleanup: GPv3: Draw Tool: Use math::numbers::pi

This commit is contained in:
Falk David
2024-06-26 11:13:17 +02:00
parent 8748225d58
commit db25962c27

View File

@@ -388,7 +388,7 @@ struct PaintOperationExecutor {
random_factor *= BKE_curvemapping_evaluateF(settings_->curve_rand_uv, 0, pressure);
}
const float random_rotation = (random_factor * 2.0f - 1.0f) * float(M_PI);
const float random_rotation = (random_factor * 2.0f - 1.0f) * math::numbers::pi;
return math::interpolate(0.0f, random_rotation, settings_->uv_random);
}