Massive overhaul of the WingActorComponent system, can now edit component properties better, lots of bug fixes
This commit is contained in:
@@ -269,9 +269,9 @@ FString WingUtils::FormatName(const FBPInterfaceDescription &IFace)
|
||||
return FormatName(IFace.Interface);
|
||||
}
|
||||
|
||||
FString WingUtils::FormatName(const FWingActorComponent &Comp)
|
||||
FString WingUtils::FormatName(const UWingComponentReference *Ref)
|
||||
{
|
||||
return SanitizeName(Comp.GetName());
|
||||
return SanitizeName(Ref->VariableName);
|
||||
}
|
||||
|
||||
FString WingUtils::FormatName(const UWidget *Widget)
|
||||
@@ -473,6 +473,18 @@ TArray<UEdGraphNode*> WingUtils::AllNodes(UEdGraph *Graph)
|
||||
return Result;
|
||||
}
|
||||
|
||||
TArray<UBlueprint*> WingUtils::GetAncestorBlueprints(UBlueprint *BP, bool OldestFirst)
|
||||
{
|
||||
TArray<UBlueprint*> Blueprints;
|
||||
for (UBlueprint* WalkBP = BP; WalkBP; )
|
||||
{
|
||||
Blueprints.Add(WalkBP);
|
||||
WalkBP = UBlueprint::GetBlueprintFromClass(WalkBP->ParentClass);
|
||||
}
|
||||
if (OldestFirst) Algo::Reverse(Blueprints);
|
||||
return Blueprints;
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// Material helpers
|
||||
// ============================================================
|
||||
|
||||
Reference in New Issue
Block a user