summaryrefslogtreecommitdiff
path: root/modules/gltf/gltf_document.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-02 08:43:16 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-02 08:43:16 +0200
commit42398b5f1797238bb9fa9cf332680d5005aa1716 (patch)
tree04856ee92b23c5ea34cc39d708881796ca4cad8c /modules/gltf/gltf_document.cpp
parentc6fd311da0d0052bb11237662ec528f9fab1b7dd (diff)
parent15d057c5211270605d4344165930bba9c5d7e2aa (diff)
Merge pull request #65223 from jtnicholl/is_zero_approx
Diffstat (limited to 'modules/gltf/gltf_document.cpp')
-rw-r--r--modules/gltf/gltf_document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp
index 0ed212e21f..bb83064446 100644
--- a/modules/gltf/gltf_document.cpp
+++ b/modules/gltf/gltf_document.cpp
@@ -435,7 +435,7 @@ Error GLTFDocument::_serialize_nodes(Ref<GLTFState> state) {
node["scale"] = _vec3_to_arr(n->scale);
}
- if (!n->position.is_equal_approx(Vector3())) {
+ if (!n->position.is_zero_approx()) {
node["translation"] = _vec3_to_arr(n->position);
}
if (n->children.size()) {