The SplineComponentVisualizer allows users to alt+drag on a spline point to duplicate it. When this is done on the last point of a spline marked as "closed-loop", the new point is correctly added at the end of the array inside the spline itself, but its associated metadata is incorrectly inserted at position 0 instead, which means that all of the existing metadata becomes offset by one and no longer matches up to the spline points.
This bug affects UCineSplineComponent from plugin "CineCameraRigs", UWaterSplineComponent from plugin "Water", and any other licensee-defined classes deriving from USplineComponent that attempt to use spline metadata with closed-loop splines.
As detected by the UDN member in the linked case, the cause of the problem seems to be a simple mistake in file [Engine\Source\Editor\ComponentVisualizers\Private\SplineComponentVisualizer.cpp], method FSplineComponentVisualizer::SplitSegment(). Please see the linked case for the relevant code snippet.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-199438 in the post.
1 |
Component | UE - Editor - Workflow Systems |
---|---|
Affects Versions | 5.3 |
Created | Nov 1, 2023 |
---|---|
Updated | Jan 20, 2024 |