More progress on anim queue
This commit is contained in:
@@ -122,6 +122,19 @@ void AIntegrationGameModeBase::UpdateTangibles() {
|
||||
UTangible* t = TangibleManager.GetTangible(tanid);
|
||||
check(t != nullptr);
|
||||
t->AnimTracker.Update(aqueue);
|
||||
|
||||
TArray<uint64> aborted = t->AnimTracker.GetAborted();
|
||||
for (uint64 hash : aborted) {
|
||||
ITangibleInterface::Execute_AbortAnimation(t->Actor, hash);
|
||||
}
|
||||
|
||||
if (t->AnimTracker.AnyUnstarted()) {
|
||||
FAnimStoredStep step = t->AnimTracker.GetUnstarted();
|
||||
bool started = ITangibleInterface::Execute_StartAnimation(t->Actor, step.Hash, step.Body.size());
|
||||
if (started) {
|
||||
t->AnimTracker.Started(step.Hash);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user