mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 17:18:44 +08:00
[ue4] Fixed playback time issue
This commit is contained in:
parent
c66088a3f2
commit
3b21f24027
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -55,17 +55,9 @@ void USpineSkeletonAnimationComponent::BeginPlay() {
|
||||
}
|
||||
|
||||
void USpineSkeletonAnimationComponent::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) {
|
||||
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
|
||||
Super::Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
|
||||
|
||||
CheckState();
|
||||
|
||||
if (state) {
|
||||
spAnimationState_update(state, DeltaTime);
|
||||
spAnimationState_apply(state, skeleton);
|
||||
BeforeUpdateWorldTransform.Broadcast(this);
|
||||
spSkeleton_updateWorldTransform(skeleton);
|
||||
AfterUpdateWorldTransform.Broadcast(this);
|
||||
}
|
||||
InternalTick(DeltaTime);
|
||||
}
|
||||
|
||||
void USpineSkeletonAnimationComponent::InternalTick(float DeltaTime) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user