Split WingComponentReference into a static helper class and a simple data class

This commit is contained in:
2026-04-08 00:07:01 -04:00
parent 9c3fab26c4
commit 083452f83f
10 changed files with 60 additions and 56 deletions

View File

@@ -1,5 +1,5 @@
#include "WingProperty.h"
#include "WingActorComponent.h"
#include "WingComponent.h"
#include "WingUtils.h"
#include "WingBasics.h"
#include "WingReferences.h"
@@ -455,7 +455,7 @@ TArray<FWingProperty> FWingProperty::GetDetails(UObject* Obj, bool Mutable)
// Component references: get the proper template.
if (UWingComponentReference* Ref = ::Cast<UWingComponentReference>(Obj))
{
Obj = Mutable ? Ref->GetMutableTemplate() : Ref->GetImmutableTemplate();
Obj = Mutable ? UWingComponent::GetMutableTemplate(Ref) : UWingComponent::GetImmutableTemplate(Ref);
if (!Obj)
{
WingOut::Stdout.Printf(TEXT("ERROR: Component '%s' has no template\n"), *Ref->VariableName.ToString());