Merge pull request #49853 from AndreaCatania/AndreaCatania-patch-4

Remove early return from gizmo intersect_ray
This commit is contained in:
Rémi Verschelde 2021-06-23 15:22:05 +02:00 committed by GitHub
commit 49df7c0bc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -600,8 +600,6 @@ bool EditorNode3DGizmo::intersect_ray(Camera3D *p_camera, const Point2 &p_point,
r_normal = -p_camera->project_ray_normal(p_point);
return true;
}
return false;
}
if (collision_segments.size()) {
@ -652,8 +650,6 @@ bool EditorNode3DGizmo::intersect_ray(Camera3D *p_camera, const Point2 &p_point,
r_normal = -p_camera->project_ray_normal(p_point);
return true;
}
return false;
}
if (collision_mesh.is_valid()) {