From bf0018d75b8ec5f64807fd921837183c24ee26a1 Mon Sep 17 00:00:00 2001 From: Sean Kim Date: Mon, 5 May 2025 04:45:48 +0200 Subject: [PATCH] Cleanup: Add comment for `tilt_sensitivity` constant Derived from discussions on D8893 Pull Request: https://projects.blender.org/blender/blender/pulls/138417 --- source/blender/editors/sculpt_paint/sculpt.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/editors/sculpt_paint/sculpt.cc b/source/blender/editors/sculpt_paint/sculpt.cc index 2ce7762d1f3..c52e81dc6c0 100644 --- a/source/blender/editors/sculpt_paint/sculpt.cc +++ b/source/blender/editors/sculpt_paint/sculpt.cc @@ -2682,6 +2682,8 @@ float3 tilt_apply_to_normal(const Object &object, } const float3 world_space = math::transform_direction(object.object_to_world(), normal); + /* Tweaked based on initial user feedback, with a value of 1.0, higher brush tilt strength + * lead to the stroke surface direction becoming inverted due to extreme rotations. */ constexpr float tilt_sensitivity = 0.7f; const float rot_max = M_PI_2 * tilt_strength * tilt_sensitivity; const float3 normal_tilt_y = math::rotate_direction_around_axis(