Skip to content

Commit 10dc7ac

Browse files
committed
- Fixed issues caused by the HoudiniAssetComponent unregistering itself
a second time in its destructor. Unregistration already happens during GC - so no need to do it a second time.
1 parent 8b62c48 commit 10dc7ac

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Source/HoudiniEngineRuntime/Private/HoudiniAssetComponent.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,15 +278,14 @@ UHoudiniAssetComponent::UHoudiniAssetComponent(const FObjectInitializer & Object
278278

279279
UHoudiniAssetComponent::~UHoudiniAssetComponent()
280280
{
281-
// Unregister ourself so our houdini node can be delete.
282-
281+
// BeginDestroy has already unregistered ourself - no need to do it again here
282+
283283
// This gets called in UnRegisterHoudiniComponent, with appropriate checks. Don't call it here.
284284
//FHoudiniEngineRuntime::Get().MarkNodeIdAsPendingDelete(AssetId, true);
285-
286-
FHoudiniEngineRuntime::Get().UnRegisterHoudiniComponent(this);
287285
}
288286

289-
void UHoudiniAssetComponent::PostInitProperties()
287+
void
288+
UHoudiniAssetComponent::PostInitProperties()
290289
{
291290
Super::PostInitProperties();
292291

0 commit comments

Comments
 (0)