From c567d46a2f65f0f0c4a8bcfab36f12bdbbcbfea8 Mon Sep 17 00:00:00 2001 From: Lyuma Date: Thu, 8 Jun 2023 19:23:14 -0700 Subject: [PATCH] Skeleton3D: Only reset rest_dirty after ALL bone transforms have finished update --- scene/3d/skeleton_3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/3d/skeleton_3d.cpp b/scene/3d/skeleton_3d.cpp index ada1e66922bb..ae73551007ed 100644 --- a/scene/3d/skeleton_3d.cpp +++ b/scene/3d/skeleton_3d.cpp @@ -906,6 +906,7 @@ void Skeleton3D::force_update_all_bone_transforms() { for (int i = 0; i < parentless_bones.size(); i++) { force_update_bone_children_transforms(parentless_bones[i]); } + rest_dirty = false; } void Skeleton3D::force_update_bone_children_transforms(int p_bone_idx) { @@ -963,7 +964,6 @@ void Skeleton3D::force_update_bone_children_transforms(int p_bone_idx) { emit_signal(SceneStringNames::get_singleton()->bone_pose_changed, current_bone_idx); } - rest_dirty = false; } void Skeleton3D::_bind_methods() {