mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
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
1 changed files with 0 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue