Skip to content

Commit e1e26f2

Browse files
committed
Update PCGExHelpers.cpp
1 parent 96e0d3b commit e1e26f2

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Source/PCGExtendedToolkit/Private/PCGExHelpers.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -553,14 +553,8 @@ namespace PCGExHelpers
553553

554554
if (!FromPoints || !ToPoints || FromPoints == ToPoints) { return; }
555555

556+
ToPoints->CopyUnallocatedPropertiesFrom(FromPoints);
556557
ToPoints->AllocateProperties(FromPoints->GetAllocatedProperties());
557-
558-
#define PCGEX_COPY_SINGLE_VALUE(_NAME, _TYPE, ...) if(EnumHasAnyFlags(Properties, EPCGPointNativeProperties::_NAME)){ \
559-
TConstPCGValueRange<_TYPE> Range = FromPoints->GetConst##_NAME##ValueRange(); \
560-
if (Range.GetSingleValue().IsSet()) { ToPoints->Get##_NAME##ValueRange(false).GetSingleValue().Emplace(Range.GetSingleValue().GetValue()); } \
561-
}
562-
563-
PCGEX_FOREACH_POINT_NATIVE_PROPERTY(PCGEX_COPY_SINGLE_VALUE)
564558
}
565559

566560
void LoadBlocking_AnyThread(const FSoftObjectPath& Path)

0 commit comments

Comments
 (0)