summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorLyuma <xn.lyuma@gmail.com>2021-10-15 11:36:18 -0700
committerLyuma <xn.lyuma@gmail.com>2021-10-15 11:36:18 -0700
commita54fe3ffa81e4dd19d24031dfcd73ab7a65311c9 (patch)
tree68918622eb32cfc77bd0ef226b1bb252a16f20ce /editor
parentfe4ca9e4df90cf01fe5a1f7a663a7a9e3e8d701d (diff)
collada: fix error in use of fix_transform.
Diffstat (limited to 'editor')
-rw-r--r--editor/import/editor_import_collada.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/import/editor_import_collada.cpp b/editor/import/editor_import_collada.cpp
index 4e343ce3ce..52be03a1b1 100644
--- a/editor/import/editor_import_collada.cpp
+++ b/editor/import/editor_import_collada.cpp
@@ -122,7 +122,7 @@ Error ColladaImport::_populate_skeleton(Skeleton3D *p_skeleton, Collada::Node *p
{
Transform3D xform = joint->compute_transform(collada);
- collada.fix_transform(xform) * joint->post_transform;
+ xform = collada.fix_transform(xform) * joint->post_transform;
p_skeleton->set_bone_pose_position(r_bone, xform.origin);
p_skeleton->set_bone_pose_rotation(r_bone, xform.basis.get_rotation_quaternion());