Merge pull request #92012 from lyuma/rest_fixer_anim_scale

Skeleton rest fixer: Apply orthonormalized scale to anims
This commit is contained in:
Rémi Verschelde 2024-05-17 11:14:11 +02:00
commit e1f72c7ca6
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}
}
}