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:
parent
cba3b024b5
commit
2c12297ee1
|
@ -598,8 +598,6 @@ bool EditorNode3DGizmo::intersect_ray(Camera3D *p_camera, const Point2 &p_point,
|
||||||
r_normal = -p_camera->project_ray_normal(p_point);
|
r_normal = -p_camera->project_ray_normal(p_point);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (collision_segments.size()) {
|
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);
|
r_normal = -p_camera->project_ray_normal(p_point);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (collision_mesh.is_valid()) {
|
if (collision_mesh.is_valid()) {
|
||||||
|
|
Loading…
Reference in New Issue