diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-06-20 11:44:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-20 11:44:56 +0200 |
commit | 671bd64e4a9984a6a308bc97d6de2eb3bc32fad8 (patch) | |
tree | 8a4b1142bccb4264245430abee26b999bc6d9c9e /modules/fbx/tools/import_utils.h | |
parent | 4fcc5891450a7dca9c8ebae6ff3765f5f060c442 (diff) | |
parent | 45c24fd039f237fa9eed03d06ccf8b3738b223e3 (diff) | |
download | redot-engine-671bd64e4a9984a6a308bc97d6de2eb3bc32fad8.tar.gz |
Merge pull request #49754 from aaronfranke/is-eq-approx-sub-opt
Fix sub-optimal uses of is_equal_approx
Diffstat (limited to 'modules/fbx/tools/import_utils.h')
-rw-r--r-- | modules/fbx/tools/import_utils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/fbx/tools/import_utils.h b/modules/fbx/tools/import_utils.h index 319a7a4697..fbe7dbd82f 100644 --- a/modules/fbx/tools/import_utils.h +++ b/modules/fbx/tools/import_utils.h @@ -137,15 +137,15 @@ public: static Vector3 safe_import_vector3(const Vector3 &p_vec) { Vector3 vector = p_vec; - if (Math::is_equal_approx(0, vector.x)) { + if (Math::is_zero_approx(vector.x)) { vector.x = 0; } - if (Math::is_equal_approx(0, vector.y)) { + if (Math::is_zero_approx(vector.y)) { vector.y = 0; } - if (Math::is_equal_approx(0, vector.z)) { + if (Math::is_zero_approx(vector.z)) { vector.z = 0; } return vector; |