Skip to content

Commit

Permalink
Nodes with matrix should assign the correct bone rest transform.
Browse files Browse the repository at this point in the history
  • Loading branch information
fire committed Oct 7, 2024
1 parent db66bd3 commit 966db88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/gltf/gltf_document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ Error GLTFDocument::_parse_nodes(Ref<GLTFState> 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"]));
Expand Down

0 comments on commit 966db88

Please sign in to comment.