Start cleaning WingReferences to be *just* the reference type and no methods
This commit is contained in:
@@ -490,6 +490,24 @@ UObject *WingUtils::GetGeneratedCDO(UBlueprint *BP)
|
||||
return BP->GeneratedClass->GetDefaultObject();
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// Graph Pin Helpers
|
||||
// ============================================================
|
||||
|
||||
UEdGraphPin* WingUtils::CheckGetPin(UEdGraphNode* Node, FName PinName, WingOut Errors)
|
||||
{
|
||||
for (UEdGraphPin* Pin : Node->Pins)
|
||||
{
|
||||
if (Pin && Pin->GetFName() == PinName)
|
||||
{
|
||||
return Pin;
|
||||
}
|
||||
}
|
||||
Errors.Printf(TEXT("ERROR: Pin '%s' no longer exists on node '%s'\n"),
|
||||
*WingUtils::ExternalizeID(PinName), *WingUtils::FormatName(Node));
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// Editor helpers
|
||||
// ============================================================
|
||||
|
||||
Reference in New Issue
Block a user