Skip to content

Commit b885667

Browse files
committed
Make the gltf animations work in 3D cabviews
1 parent 8c7b4a7 commit b885667

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Source/RunActivity/Viewer3D/RollingStock/MSTSLocomotiveViewer.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -3433,8 +3433,7 @@ public ThreeDimentionCabViewer(Viewer viewer, MSTSLocomotive car, MSTSLocomotive
34333433
break;
34343434
}
34353435

3436-
// This is the case for .s files, for glTF-s it will not be true
3437-
var targetNode = iMatrix;
3436+
var targetNode = TrainCarShape.SharedShape.GetAnimationTargetNode(iMatrix);
34383437

34393438
if (style != null && style is CabViewDigitalRenderer)//digits?
34403439
{

0 commit comments

Comments
 (0)