Use internal process for updating a dirty skeleton instead of the MessageQueue. This fixes BoneAttachments being a frame late.

This commit is contained in:
Relintai 2024-04-11 22:23:47 +02:00
parent dff6d9e9e3
commit 952c307f8a

View File

@ -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
@ -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;
}