Skip to content

Commit

Permalink
Use internal process for updating a dirty skeleton instead of the Mes…
Browse files Browse the repository at this point in the history
…sageQueue. This fixes BoneAttachments being a frame late.
  • Loading branch information
Relintai committed Apr 11, 2024
1 parent dff6d9e commit 952c307
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/skeleton_3d/nodes/skeleton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,10 @@ void Skeleton::_notification(int p_what) {
if (modification_stack.is_valid()) {
execute_modifications(get_process_delta_time(), SkeletonModificationStack3D::EXECUTION_MODE::execution_mode_process);
}

if (dirty) {
_notification(NOTIFICATION_UPDATE_SKELETON);
}
} break;
#endif // _3D_DISABLED

Expand Down Expand Up @@ -812,7 +816,7 @@ void Skeleton::_make_dirty() {
return;
}

MessageQueue::get_singleton()->push_notification(this, NOTIFICATION_UPDATE_SKELETON);
//MessageQueue::get_singleton()->push_notification(this, NOTIFICATION_UPDATE_SKELETON);
dirty = true;
}

Expand Down

0 comments on commit 952c307

Please sign in to comment.