mirror of
https://github.com/godotengine/godot.git
synced 2025-02-08 11:50:41 +00:00
Merge pull request #27182 from goodyttoor/gltf_order
Fix order of transformation in GLTF import
This commit is contained in:
commit
9d7343a1a3
@ -237,8 +237,7 @@ Error EditorSceneImporterGLTF::_parse_nodes(GLTFState &state) {
|
||||
node->scale = _arr_to_vec3(n["scale"]);
|
||||
}
|
||||
|
||||
node->xform.basis = Basis(node->rotation);
|
||||
node->xform.basis.scale(node->scale);
|
||||
node->xform.basis.set_quat_scale(node->rotation, node->scale);
|
||||
node->xform.origin = node->translation;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user