Skip to content

Commit 056ddf1

Browse files
committed
* Fixed PDG Output Filter not being settable.
* Fixed PDG output actor parenting not working.
1 parent a1fa713 commit 056ddf1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Source/HoudiniEngineEditor/Private/HoudiniPDGDetails.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ FHoudiniPDGDetails::AddPDGAssetWidget(
363363
FText Tooltip = FText::FromString(TEXT("When enabled, the Work Item Output Files created for the TOP Nodes found in the current network that start with the filter prefix will be automatically loaded int the world after being cooked."));
364364
auto ChangeTOPOutputFilter = [InPDGAssetLink](const FString& NewValue)
365365
{
366-
if (IsValidWeakPointer(InPDGAssetLink))
366+
if (!IsValidWeakPointer(InPDGAssetLink))
367367
return;
368368

369369
if (InPDGAssetLink->TOPOutputFilter.Equals(NewValue))

Source/HoudiniEngineRuntime/Private/HoudiniPDGAssetLink.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2146,7 +2146,12 @@ FOutputActorOwner::CreateOutputActor(UWorld* InWorld, UHoudiniPDGAssetLink* InAs
21462146
}
21472147

21482148
RootComponent->SetVisibility(true);
2149-
RootComponent->SetMobility(EComponentMobility::Static);
2149+
2150+
// If we have a parent actor, set mobility to Movable (or it won't work!)
2151+
if (InParentActor)
2152+
RootComponent->SetMobility(EComponentMobility::Movable);
2153+
else
2154+
RootComponent->SetMobility(EComponentMobility::Static);
21502155

21512156
const FVector ActorSpawnLocation = InParentActor ? InParentActor->GetActorLocation() : FVector::ZeroVector;
21522157
const FRotator ActorSpawnRotator = InParentActor ? InParentActor->GetActorRotation() : FRotator::ZeroRotator;

0 commit comments

Comments
 (0)