Skip to content

Commit

Permalink
Merge pull request #78025 from lyuma/skeleton3d_rest_dirty
Browse files Browse the repository at this point in the history
Skeleton3D: Only reset rest_dirty after ALL bone transforms have finished update
  • Loading branch information
akien-mga committed Jun 9, 2023
2 parents 082cfd5 + c567d46 commit da68c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/3d/skeleton_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit da68c70

Please sign in to comment.