Add is_zero_approx methods to Vector2, 3, and 4
This commit is contained in:
parent
c6fd311da0
commit
15d057c521
26 changed files with 70 additions and 31 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue