summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorsmix8 <>2021-04-15 17:29:36 +0200
committersmix8 <>2021-04-15 17:29:36 +0200
commitd8b4a6167896d331f3e32c197f7e9b59cfd86e0b (patch)
treeb4cb3a788ea60e4f4539919f97690c4ff4c50616 /scene
parentb8bd648ad9b530e4e29424efe3a9d0b19387d998 (diff)
fix skeleton (ik) not resetting global_bone_overrides properly
fix skeleton (ik) not resetting global_bone_overrides properly
Diffstat (limited to 'scene')
-rw-r--r--scene/3d/skeleton_3d.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/3d/skeleton_3d.cpp b/scene/3d/skeleton_3d.cpp
index db5fc7593e..ebbb8985c9 100644
--- a/scene/3d/skeleton_3d.cpp
+++ b/scene/3d/skeleton_3d.cpp
@@ -387,6 +387,7 @@ void Skeleton3D::_notification(int p_what) {
void Skeleton3D::clear_bones_global_pose_override() {
for (int i = 0; i < bones.size(); i += 1) {
bones.write[i].global_pose_override_amount = 0;
+ bones.write[i].global_pose_override_reset = true;
}
_make_dirty();
}