Skip to content

Commit b96256d

Browse files
committed
Create Spline bugfix + cleanup
1 parent a1053a7 commit b96256d

40 files changed

+89
-88
lines changed

Source/PCGExtendedToolkit/Private/AssetStaging/PCGExSocketStaging.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ namespace PCGExSocketStaging
121121

122122
SocketHelper->Add(Index, PCGExStaging::GetSimplifiedEntryHash(Hash), Entry);
123123
}
124-
125124
}
126125

127126
void FProcessor::OnPointsProcessingComplete()

Source/PCGExtendedToolkit/Private/Collections/PCGExAssetCollection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ if ((_COMPONENT & static_cast<uint8>(EPCGExApplySampledComponentFlags::X)) != 0)
128128
if ((_COMPONENT & static_cast<uint8>(EPCGExApplySampledComponentFlags::Y)) != 0){ _ARRAY.Add(1); } \
129129
if ((_COMPONENT & static_cast<uint8>(EPCGExApplySampledComponentFlags::Z)) != 0){ _ARRAY.Add(2); }
130130

131-
PCGEX_REGISTER_FLAG(TransformScale, TrScaComponents)
131+
PCGEX_REGISTER_FLAG(TransformScale, TrScaComponents)
132132

133133
#undef PCGEX_REGISTER_FLAG
134-
134+
135135
return true;
136136
}
137137

Source/PCGExtendedToolkit/Private/Data/PCGExPointIO.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ namespace PCGExData
101101
check(Out)
102102

103103
PCGExHelpers::InitEmptyNativeProperties(In, Out);
104-
105-
FPCGInitializeFromDataParams InitializeFromDataParams(In);
104+
105+
FPCGInitializeFromDataParams InitializeFromDataParams(In);
106106
InitializeFromDataParams.bInheritSpatialData = false;
107107
Out->InitializeFromDataWithParams(InitializeFromDataParams);
108108
}

Source/PCGExtendedToolkit/Private/Data/PCGExProxyData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ template class PCGEXTENDEDTOOLKIT_API TPointExtraPropertyProxy<_REALTYPE, _TYPE,
420420
#undef PCGEX_TPL
421421

422422
#pragma endregion
423-
423+
424424
#pragma region externalization
425425

426426
#define PCGEX_TPL(_TYPE, _NAME, ...) \

Source/PCGExtendedToolkit/Private/Graph/Pathfinding/PCGExPathfindingPlotNavmesh.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ void UPCGExPathfindingPlotNavmeshSettings::PostEditChangeProperty(FPropertyChang
4444
PCGEX_INITIALIZE_ELEMENT(PathfindingPlotNavmesh)
4545

4646

47-
4847
bool FPCGExPathfindingPlotNavmeshElement::Boot(FPCGExContext* InContext) const
4948
{
5049
if (!FPCGExPointsProcessorElement::Boot(InContext)) { return false; }

Source/PCGExtendedToolkit/Private/Graph/Probes/PCGExProbeNumericCompare.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ bool FPCGExProbeNumericCompare::PrepareForPoints(FPCGExContext* InContext, const
1515

1616
MaxConnections = Config.GetValueSettingMaxConnections();
1717
if (!MaxConnections->Init(PrimaryDataFacade)) { return false; }
18-
18+
1919
ValuesBuffer = PrimaryDataFacade->GetBroadcaster<double>(Config.Attribute, true);
2020

2121
if (!ValuesBuffer)
@@ -37,7 +37,7 @@ void FPCGExProbeNumericCompare::ProcessCandidates(const int32 Index, const FTran
3737
const double R = GetSearchRadius(Index);
3838

3939
if (MaxIterations <= 0) { return; }
40-
40+
4141
TSet<FInt32Vector> LocalCoincidence;
4242
int32 Additions = 0;
4343

Source/PCGExtendedToolkit/Private/Misc/Filters/PCGExInclusionFilter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ namespace PCGExPointFilter
9595
{
9696
PCGExData::FProxyPoint ProxyPoint;
9797
IO->GetDataAsProxyPoint(ProxyPoint);
98-
98+
9999
int32 InclusionsCount = 0;
100100
PCGExPathInclusion::EFlags Flags = Handler->GetInclusionFlags(
101101
ProxyPoint.GetLocation(), InclusionsCount,

Source/PCGExtendedToolkit/Private/Misc/Filters/PCGExPolyPathFilterFactory.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ namespace PCGExPathInclusion
235235
const PCGExOctree::FItem& Item)
236236
{
237237
if (bIgnoreSelf && InParentData != nullptr) { if (InParentData == *(Datas->GetData() + Item.Index)) { return; } }
238-
238+
239239
if ((*(Paths->GetData() + Item.Index))->IsInsideProjection(WorldPosition))
240240
{
241241
InclusionCount++;
@@ -263,7 +263,7 @@ namespace PCGExPathInclusion
263263
[&](const PCGExOctree::FItem& Item)
264264
{
265265
if (bIgnoreSelf && InParentData != nullptr) { if (InParentData == *(Datas->GetData() + Item.Index)) { return; } }
266-
266+
267267
bool bLocalIsInside = false;
268268
const FTransform Closest = (*(Paths->GetData() + Item.Index))->GetClosestTransform(WorldPosition, bLocalIsInside, bScaleTolerance);
269269
InclusionCount += bLocalIsInside;
@@ -285,7 +285,7 @@ namespace PCGExPathInclusion
285285
const PCGExOctree::FItem& Item)
286286
{
287287
if (bIgnoreSelf && InParentData != nullptr) { if (InParentData == *(Datas->GetData() + Item.Index)) { return; } }
288-
288+
289289
bool bLocalIsInside = false;
290290
const FTransform Closest = (*(Paths->GetData() + Item.Index))->GetClosestTransform(WorldPosition, bLocalIsInside, bScaleTolerance);
291291
InclusionCount += bLocalIsInside;

Source/PCGExtendedToolkit/Private/PCGExHelpers.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,12 @@ namespace PCGEx
426426
void ReorderValueRange(TPCGValueRange<T>& InRange, const TArray<int32>& InOrder)
427427
{
428428
TRACE_CPUPROFILER_EVENT_SCOPE(PCGExHelpers::ReorderValueRange);
429-
429+
430430
const int32 NumIndices = InOrder.Num();
431431
TArray<T> ValuesCopy;
432432
ValuesCopy.Reserve(NumIndices);
433-
for (int i = 0; i < NumIndices; i++){ ValuesCopy.Emplace(InRange[InOrder[i]]); }
434-
for (int i = 0; i < NumIndices; i++){ InRange[i] = ValuesCopy[i]; }
433+
for (int i = 0; i < NumIndices; i++) { ValuesCopy.Emplace(InRange[InOrder[i]]); }
434+
for (int i = 0; i < NumIndices; i++) { InRange[i] = ValuesCopy[i]; }
435435
}
436436

437437
#define PCGEX_TPL(_TYPE, _NAME, ...) \
@@ -443,17 +443,16 @@ template PCGEXTENDEDTOOLKIT_API void ReorderValueRange<_TYPE>(TPCGValueRange<_TY
443443
void ReorderPointArrayData(UPCGBasePointData* InData, const TArray<int32>& InOrder)
444444
{
445445
TRACE_CPUPROFILER_EVENT_SCOPE(PCGExHelpers::ReorderPointArrayData);
446-
446+
447447
EPCGPointNativeProperties AllocatedProperties = InData->GetAllocatedProperties();
448448

449449
#define PCGEX_REORDER_RANGE_DECL(_NAME, _TYPE, ...) \
450450
if(EnumHasAnyFlags(AllocatedProperties, EPCGPointNativeProperties::_NAME)){ \
451451
TPCGValueRange<_TYPE> Range = InData->Get##_NAME##ValueRange(true); \
452452
ReorderValueRange<_TYPE>(Range, InOrder);}
453-
453+
454454
PCGEX_FOREACH_POINT_NATIVE_PROPERTY(PCGEX_REORDER_RANGE_DECL)
455455
#undef PCGEX_REORDER_RANGE_DECL
456-
457456
}
458457

459458
FString GetSelectorDisplayName(const FPCGAttributePropertyInputSelector& InSelector)
@@ -555,7 +554,7 @@ namespace PCGExHelpers
555554
if (!FromPoints || !ToPoints || FromPoints == ToPoints) { return; }
556555

557556
ToPoints->AllocateProperties(FromPoints->GetAllocatedProperties());
558-
557+
559558
#define PCGEX_COPY_SINGLE_VALUE(_NAME, _TYPE, ...) if(EnumHasAnyFlags(Properties, EPCGPointNativeProperties::_NAME)){ \
560559
TConstPCGValueRange<_TYPE> Range = FromPoints->GetConst##_NAME##ValueRange(); \
561560
if (Range.GetSingleValue().IsSet()) { ToPoints->Get##_NAME##ValueRange(false).GetSingleValue().Emplace(Range.GetSingleValue().GetValue()); } \

Source/PCGExtendedToolkit/Private/PCGExMath.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ namespace PCGExMath
230230
Vector[2] = Temp[C];
231231
}
232232

233-
void Swizzle(FVector& Vector, const int32(& Order)[3])
233+
void Swizzle(FVector& Vector, const int32 (&Order)[3])
234234
{
235235
FVector Temp = Vector;
236236
Vector[0] = Temp[Order[0]];

0 commit comments

Comments
 (0)