[ue4] Fixed playback time issue

This commit is contained in:
badlogic 2016-12-13 12:22:42 +01:00
parent c66088a3f2
commit 3b21f24027
4 changed files with 2 additions and 10 deletions

Binary file not shown.

View File

@ -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) {