Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fix local scale application in AnimationMixer

Owusu085024b7a6d5
diff --git a/scene/animation/animation_mixer.cpp b/scene/animation/animation_mixer.cpp
index 06551acb8c5..b89cf24c91f 100644
--- a/scene/animation/animation_mixer.cpp
+++ b/scene/animation/animation_mixer.cpp
@@ -1955,7 +1955,7 @@ void AnimationMixer::_blend_apply() {
return;
}
if (t->loc_used && t->rot_used && t->scale_used) {
- Transform3D transform = Transform3D(Basis(t->rot).scaled(t->scale), t->loc);
+ Transform3D transform = Transform3D(Basis(t->rot).scaled_local(t->scale), t->loc);
t_node_3d->set_transform(transform);
} else {
if (t->loc_used) {