Description

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)
			{

 

Steps to Reproduce
  1. Open the attched repro project in the editor.
  2. Select BP_TestActor and in viewport
  3. Execute call in editor function "SpawnCineCamera" in details panel

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.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-250115 in the post.

0
Login to Vote

Fixed
ComponentUE - Anim - Sequencer
Affects Versions5.5
Target Fix5.6
Fix Commit40147699
CreatedFeb 19, 2025
ResolvedFeb 19, 2025
UpdatedMar 4, 2025
View Jira Issue