File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Source/PCGExtendedToolkit/Private Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "FileVersion": 3,
33 "Version": 1,
4- "VersionName": "0.67.8 ",
4+ "VersionName": "0.67.9 ",
55 "FriendlyName": "PCGExtendedToolkit",
66 "Description": "A rather large toolset that expand on existing PCG capabilities in unique ways.",
77 "Category": "PCG",
Original file line number Diff line number Diff line change @@ -230,7 +230,6 @@ bool FPCGExPointsProcessorElement::PrepareDataInternal(FPCGContext* InContext) c
230230 {
231231 if (!Boot (Context))
232232 {
233- Context->OutputData .TaggedData .Empty (); // Ensure culling of subsequent nodes if boot fails
234233 return Context->CancelExecution (TEXT (" " ));
235234 }
236235
@@ -311,6 +310,8 @@ void FPCGExPointsProcessorElement::OnContextInitialized(FPCGExPointsProcessorCon
311310
312311bool FPCGExPointsProcessorElement::Boot (FPCGExContext* InContext) const
313312{
313+ if (InContext->InputData .bCancelExecution ) { return false ; }
314+
314315 FPCGExPointsProcessorContext* Context = static_cast <FPCGExPointsProcessorContext*>(InContext);
315316 PCGEX_SETTINGS (PointsProcessor)
316317
@@ -336,9 +337,11 @@ bool FPCGExPointsProcessorElement::Boot(FPCGExContext* InContext) const
336337 Context->MainPoints = MakeShared<PCGExData::FPointIOCollection>(Context, Settings->GetIsMainTransactional ());
337338 Context->MainPoints ->OutputPin = Settings->GetMainOutputPin ();
338339
340+ TArray<FPCGTaggedData> Sources = Context->InputData .GetInputsByPin (Settings->GetMainInputPin ());
341+ if (Sources.IsEmpty () && !Settings->IsInputless ()) { return false ; } // Silent cancel, there's simply no data
342+
339343 if (Settings->GetMainAcceptMultipleData ())
340344 {
341- TArray<FPCGTaggedData> Sources = Context->InputData .GetInputsByPin (Settings->GetMainInputPin ());
342345 Context->MainPoints ->Initialize (Sources, Settings->GetMainOutputInitMode ());
343346 }
344347 else
You can’t perform that action at this time.
0 commit comments