From 966db88f1c970d4b5661925e86d51a2cfd7b861f Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Mon, 7 Oct 2024 09:28:57 -0700 Subject: [PATCH] Nodes with matrix should assign the correct bone rest transform. --- modules/gltf/gltf_document.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp index 992075e980e7..be88f650117a 100644 --- a/modules/gltf/gltf_document.cpp +++ b/modules/gltf/gltf_document.cpp @@ -603,6 +603,7 @@ Error GLTFDocument::_parse_nodes(Ref p_state) { } if (n.has("matrix")) { node->transform = _arr_to_xform(n["matrix"]); + node->set_additional_data("GODOT_rest_transform", node->transform); } else { if (n.has("translation")) { node->set_position(_arr_to_vec3(n["translation"]));