| 4 | FAlsxtAnimationInstanceProxy::FAlsxtAnimationInstanceProxy(UAnimInstance* AnimationInstance): FAnimInstanceProxy{AnimationInstance} {} |
| 5 | |
| 6 | void FAlsxtAnimationInstanceProxy::PostUpdate(UAnimInstance* AnimationInstance) const |
| 7 | { |
| 8 | FAnimInstanceProxy::PostUpdate(AnimationInstance); |
| 9 | |
| 10 | // Epic does not allow to override the UAnimInstance::PostUpdateAnimation() |
| 11 | // function in child classes, so we have to resort to this workaround. |
| 12 | |
| 13 | auto* ALSXTAnimationInstance{Cast<UAlsxtAnimationInstance>(AnimationInstance)}; |
| 14 | if (IsValid(ALSXTAnimationInstance)) |
| 15 | { |
| 16 | ALSXTAnimationInstance->NativePostUpdateAnimation(); |
| 17 | } |
| 18 | } |