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.
(cherry picked from commit 2c12297ee1
)
This commit is contained in:
parent
5ff9b52214
commit
eb3ddbc050
1 changed files with 0 additions and 4 deletions
|
@ -635,8 +635,6 @@ bool EditorSpatialGizmo::intersect_ray(Camera *p_camera, const Point2 &p_point,
|
|||
r_normal = -p_camera->project_ray_normal(p_point);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if (collision_segments.size()) {
|
||||
|
@ -687,8 +685,6 @@ bool EditorSpatialGizmo::intersect_ray(Camera *p_camera, const Point2 &p_point,
|
|||
r_normal = -p_camera->project_ray_normal(p_point);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if (collision_mesh.is_valid()) {
|
||||
|
|
Loading…
Reference in a new issue