Remove early return from gizmo intersect_ray

Remove early returns from `EditorNode3DGizmo::intersect_ray` that is preventing to have gizmos that use Mesh collision + Segment collision + Icon.
This commit is contained in:
AndreaCatania 2021-06-23 13:06:45 +02:00
parent cba3b024b5
commit 2c12297ee1
1 changed files with 0 additions and 4 deletions

View File

@ -598,8 +598,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()) {
@ -650,8 +648,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()) {