mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 11:56:49 +01:00
Use internal process for updating a dirty skeleton instead of the MessageQueue. This fixes BoneAttachments being a frame late.
This commit is contained in:
parent
dff6d9e9e3
commit
952c307f8a
@ -364,6 +364,10 @@ void Skeleton::_notification(int p_what) {
|
|||||||
if (modification_stack.is_valid()) {
|
if (modification_stack.is_valid()) {
|
||||||
execute_modifications(get_process_delta_time(), SkeletonModificationStack3D::EXECUTION_MODE::execution_mode_process);
|
execute_modifications(get_process_delta_time(), SkeletonModificationStack3D::EXECUTION_MODE::execution_mode_process);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dirty) {
|
||||||
|
_notification(NOTIFICATION_UPDATE_SKELETON);
|
||||||
|
}
|
||||||
} break;
|
} break;
|
||||||
#endif // _3D_DISABLED
|
#endif // _3D_DISABLED
|
||||||
|
|
||||||
@ -812,7 +816,7 @@ void Skeleton::_make_dirty() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
MessageQueue::get_singleton()->push_notification(this, NOTIFICATION_UPDATE_SKELETON);
|
//MessageQueue::get_singleton()->push_notification(this, NOTIFICATION_UPDATE_SKELETON);
|
||||||
dirty = true;
|
dirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user