diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-06-23 15:22:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-23 15:22:05 +0200 |
commit | 49df7c0bc19d0418c0c89a6a84a0769db3fa9616 (patch) | |
tree | 05e0ef054096e4274032eb3d1f41bff11d331d78 /editor | |
parent | c866d4f6d4cb46c4ac08eaf81eab8722e030f090 (diff) | |
parent | 2c12297ee110aa9a596e6d25ed5853f9bdc9fcfd (diff) |
Merge pull request #49853 from AndreaCatania/AndreaCatania-patch-4
Remove early return from gizmo intersect_ray
Diffstat (limited to 'editor')
-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 4d61e982c1..2a399f4b03 100644 --- a/editor/node_3d_editor_gizmos.cpp +++ b/editor/node_3d_editor_gizmos.cpp @@ -600,8 +600,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()) { @@ -652,8 +650,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()) { |