Browse Source

[ue] Do not access TrackEntry during Destroy, as it may be invalid at that point.

Mario Zechner 8 months ago
parent
commit
fa0e27b555

+ 0 - 3
spine-ue/Plugins/SpinePlugin/Source/SpinePlugin/Private/SpineSkeletonAnimationComponent.cpp

@@ -83,9 +83,6 @@ void USpineSkeletonAnimationComponent::BeginPlay() {
 }
 }
 
 
 void UTrackEntry::BeginDestroy() {
 void UTrackEntry::BeginDestroy() {
-	if (entry) {
-		entry->setRendererObject(nullptr);
-	}
 	Super::BeginDestroy();
 	Super::BeginDestroy();
 }
 }