diff options
author | AndreaCatania <info@andreacatania.com> | 2021-06-23 13:06:45 +0200 |
---|---|---|
committer | AndreaCatania <info@andreacatania.com> | 2021-06-23 13:06:45 +0200 |
commit | 2c12297ee110aa9a596e6d25ed5853f9bdc9fcfd (patch) | |
tree | 6291328a74c4423016dd7c855587400836696598 | |
parent | cba3b024b5d08b79e4389dc2c374e38ab4a64ff9 (diff) |
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.
-rw-r--r-- | editor/node_3d_editor_gizmos.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/editor/node_3d_editor_gizmos.cpp b/editor/node_3d_editor_gizmos.cpp index 7dcabafece..9ca2fb2883 100644 --- a/editor/node_3d_editor_gizmos.cpp +++ b/editor/node_3d_editor_gizmos.cpp @@ -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()) { |