From 2c12297ee110aa9a596e6d25ed5853f9bdc9fcfd Mon Sep 17 00:00:00 2001 From: AndreaCatania Date: Wed, 23 Jun 2021 13:06:45 +0200 Subject: [PATCH] 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. --- editor/node_3d_editor_gizmos.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/editor/node_3d_editor_gizmos.cpp b/editor/node_3d_editor_gizmos.cpp index 7dcabafecea..9ca2fb2883e 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()) {