[ue4] Closes #2172, check state before returning Spine::Skeleton

This commit is contained in:
badlogic 2022-10-24 14:31:26 +02:00
parent 867af5c134
commit c6f8b943b1

View File

@ -53,7 +53,7 @@ public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Spine)
USpineSkeletonDataAsset *SkeletonData;
spine::Skeleton *GetSkeleton() { return skeleton; };
spine::Skeleton *GetSkeleton() { CheckState(); return skeleton; };
UFUNCTION(BlueprintPure, Category = "Components|Spine|Skeleton")
void GetSkins(TArray<FString> &Skins);