Skip to content

Commit 516825f

Browse files
committed
Fix 3D cab switching when there is no front 3D cab
1 parent a34b857 commit 516825f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/RunActivity/Viewer3D/Cameras.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1890,7 +1890,7 @@ public void ChangeCab(TrainCar newCar)
18901890
var mstsLocomotive = newCar as MSTSLocomotive;
18911891
if (PrevCabWasRear != mstsLocomotive.UsingRearCab)
18921892
RotationYRadians += MathHelper.Pi;
1893-
ActViewPoint = mstsLocomotive.UsingRearCab ? 1 : 0;
1893+
ActViewPoint = mstsLocomotive.UsingRearCab && mstsLocomotive.HasFront3DCab ? 1 : 0;
18941894
PrevCabWasRear = mstsLocomotive.UsingRearCab;
18951895
SetCameraCar(newCar);
18961896
}

0 commit comments

Comments
 (0)