mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[ue] Update skeleton time in widget on tick
This commit is contained in:
parent
da3d1cd4b3
commit
39635f7566
@ -134,6 +134,7 @@ void USpineWidget::Tick(float DeltaTime, bool CallDelegates) {
|
|||||||
state->update(DeltaTime);
|
state->update(DeltaTime);
|
||||||
state->apply(*skeleton);
|
state->apply(*skeleton);
|
||||||
if (CallDelegates) BeforeUpdateWorldTransform.Broadcast(this);
|
if (CallDelegates) BeforeUpdateWorldTransform.Broadcast(this);
|
||||||
|
skeleton->update(DeltaTime);
|
||||||
skeleton->updateWorldTransform(Physics_Update);
|
skeleton->updateWorldTransform(Physics_Update);
|
||||||
if (CallDelegates) AfterUpdateWorldTransform.Broadcast(this);
|
if (CallDelegates) AfterUpdateWorldTransform.Broadcast(this);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user