File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Source/RunActivity/Viewer3D Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1089,10 +1089,14 @@ protected override void OnActivate(bool sameCamera)
1089
1089
oldCarPosition = oldCarPosition == 0 && carPosition == 0 ? - 1 : oldCarPosition ;
1090
1090
}
1091
1091
1092
- if ( attachedCar != null && ! isVisibleTrainCarViewerOrWebpage && ! Front )
1093
- { // Reset behaviour of camera 3, after closing F9-window and F9-web.
1092
+ if ( attachedCar != null && ! isVisibleTrainCarViewerOrWebpage )
1093
+ { // Reset behaviour of camera 2 and camera 3, after closing F9-window and F9-web.
1094
1094
var attachedCarPosition = attachedCar . Train . Cars . TakeWhile ( x => x . CarID != attachedCar . CarID ) . Count ( ) ;
1095
- if ( attachedCarPosition == carPosition )
1095
+ if ( Front && attachedCarPosition == carPosition )
1096
+ {
1097
+ attachedCar = trainCars . First ( ) ;
1098
+ }
1099
+ if ( ! Front && attachedCarPosition == carPosition )
1096
1100
{
1097
1101
attachedCar = trainCars . Last ( ) ;
1098
1102
}
You can’t perform that action at this time.
0 commit comments