| 479 | #endif // WITH_EDITOR |
| 480 | |
| 481 | FFlowDataPinResult UFlowNode::TrySupplyDataPin(FName PinName) const |
| 482 | { |
| 483 | const FFlowPin* FlowPin = FindOutputPinByName(PinName); |
| 484 | if (!FlowPin) |
| 485 | { |
| 486 | // Also look in the Input Pins (for supplying default values for unconnected pins) |
| 487 | FlowPin = FindInputPinByName(PinName); |
| 488 | if (!FlowPin) |
| 489 | { |
| 490 | return FFlowDataPinResult(EFlowDataPinResolveResult::FailedUnknownPin); |
| 491 | } |
| 492 | } |
| 493 | |
| 494 | const FFlowPinType* DataPinType = FlowPin->ResolveFlowPinType(); |
| 495 | if (!DataPinType) |
| 496 | { |
| 497 | return FFlowDataPinResult(EFlowDataPinResolveResult::FailedMismatchedType); |
| 498 | } |
| 499 | |
| 500 | FFlowDataPinResult SuppliedResult; |
| 501 | if (TryGatherPropertyOwnersAndPopulateResult(PinName, *DataPinType, *FlowPin, SuppliedResult)) |
| 502 | { |
| 503 | return SuppliedResult; |
| 504 | } |
| 505 | |
| 506 | return FFlowDataPinResult(EFlowDataPinResolveResult::FailedUnknownPin); |
| 507 | } |
| 508 | |
| 509 | bool UFlowNode::TryFindPropertyByPinName( |
| 510 | const UObject& PropertyOwnerObject, |
no test coverage detected