diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-07-21 11:16:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-21 11:16:19 +0200 |
commit | d4bbdb83674526a80ae6d0d2c080768da7629804 (patch) | |
tree | 9fbe5a4ba2bf8431b05845378ddaad6c07afc805 /editor/plugins/node_3d_editor_plugin.cpp | |
parent | 8cc599db645a356ca6af3bc15e7574fa6e3ada0e (diff) | |
parent | 78b0a7da0398dc8c6447b1439a6d07059311c028 (diff) |
Merge pull request #50521 from aaronfranke/iseqapprox
Use `is_equal_approx` in more places
Diffstat (limited to 'editor/plugins/node_3d_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index a0884a81cd..7290a39463 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -3338,7 +3338,7 @@ void Node3DEditorViewport::update_transform_gizmo_view() { Transform3D camera_xform = camera->get_transform(); - if (xform.origin.distance_squared_to(camera_xform.origin) < 0.01) { + if (xform.origin.is_equal_approx(camera_xform.origin)) { for (int i = 0; i < 3; i++) { RenderingServer::get_singleton()->instance_set_visible(move_gizmo_instance[i], false); RenderingServer::get_singleton()->instance_set_visible(move_plane_gizmo_instance[i], false); |