Do not show the last index in the preview mesh display of the CameraRig_Rail actor. The reproduction test case generates a ring of rails, but only the last index is not displayed.
Recommended Code:
Apply the following changes in ACameraRig_Rail::UpdatePreviewMeshes()
void ACameraRig_Rail::UpdatePreviewMeshes() { if (RailSplineComponent) { if (PreviewRailStaticMesh) { // int32 const NumSplinePoints = RailSplineComponent->GetNumberOfSplinePoints(); // int32 const NumNeededPreviewMeshes = FMath::Max(0, NumSplinePoints - 1); int32 const NumNeededPreviewMeshes = FMath::Max(0, RailSplineComponent->GetNumberOfSplineSegments()); ... // for (int PtIdx = 0; PtIdx < NumSplinePoints - 1; ++PtIdx) for (int PtIdx = 0; PtIdx < NumNeededPreviewMeshes; ++PtIdx) {
Then, spawn CameraRig_Rail actor and generate rails in the form of rings.
Result:
Do not show the last index in the rails preview mesh
Expected:
Show rails in the form of rings.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-250115 in the post.
0 |
Component | UE - Anim - Sequencer |
---|---|
Affects Versions | 5.5 |
Target Fix | 5.6 |
Fix Commit | 40147699 |
---|
Created | Feb 19, 2025 |
---|---|
Resolved | Feb 19, 2025 |
Updated | Mar 4, 2025 |