Skip to content

Commit

Permalink
Merge pull request #92012 from lyuma/rest_fixer_anim_scale
Browse files Browse the repository at this point in the history
Skeleton rest fixer: Apply orthonormalized scale to anims
  • Loading branch information
akien-mga committed May 17, 2024
2 parents 0d5e910 + 25ddb3d commit e1f72c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ void PostImportPluginSkeletonRestFixer::internal_process(InternalImportCategory
} else {
for (int j = 0; j < key_len; j++) {
Basis sc = Basis().scaled(static_cast<Vector3>(anim->track_get_key_value(i, j)));
anim->track_set_key_value(i, j, (global_transform.basis * sc).get_scale());
anim->track_set_key_value(i, j, (global_transform.orthonormalized().basis * sc).get_scale());
}
}
}
Expand Down

0 comments on commit e1f72c7

Please sign in to comment.