From fe8d40e66e26a7f3ffe0d6f67ef0215d5a0f159c Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 22 Oct 2024 17:23:14 -0400 Subject: [PATCH] Update PCGExSplineToPath.cpp --- .../PCGExtendedToolkit/Private/Paths/PCGExSplineToPath.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/PCGExtendedToolkit/Private/Paths/PCGExSplineToPath.cpp b/Source/PCGExtendedToolkit/Private/Paths/PCGExSplineToPath.cpp index 0584d55f..7dbd86e0 100644 --- a/Source/PCGExtendedToolkit/Private/Paths/PCGExSplineToPath.cpp +++ b/Source/PCGExtendedToolkit/Private/Paths/PCGExSplineToPath.cpp @@ -4,6 +4,7 @@ #include "Paths/PCGExSplineToPath.h" #include "VectorTypes.h" +#include "Misc/PCGExRefreshSeed.h" #include "Sampling/PCGExSampleNearestSpline.h" #define LOCTEXT_NAMESPACE "PCGExSplineToPathElement" @@ -144,7 +145,9 @@ namespace PCGExSplineToPath } auto ApplyTransform = [&](FPCGPoint& Point, const FTransform& Transform) - { + { + Point.Seed = PCGExRandom::ComputeSeed(Point); + if (Settings->TransformDetails.bInheritRotation && Settings->TransformDetails.bInheritScale) { Point.Transform = Transform;