Fix #138827: Line Project tool not working on scaled objects

Introduced with `a9e29bea94`

The normal wasn't normalized after being converted to object space.

Pull Request: https://projects.blender.org/blender/blender/pulls/138848
This commit is contained in:
Nicola
2025-05-14 23:08:21 +02:00
committed by Sean Kim
parent 2e3debc4ca
commit 0cf8066284

View File

@@ -187,7 +187,8 @@ static void line_plane_from_tri(float *r_plane,
{
float3 normal;
normal_tri_v3(normal, p1, p2, p3);
normal = math::transform_direction(gesture_data.vc.obact->world_to_object(), normal);
normal = math::normalize(
math::transform_direction(gesture_data.vc.obact->world_to_object(), normal));
if (flip) {
normal *= -1.0f;
}