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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user