Skip to content

Commit

Permalink
Skeleton3D: Only reset rest_dirty after ALL bone transforms have fini…
Browse files Browse the repository at this point in the history
…shed update
  • Loading branch information
lyuma committed Jun 9, 2023
1 parent 0a0132c commit c567d46
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 c567d46

Please sign in to comment.