Skip to content

Commit 5ad4c62

Browse files
authored
Merge pull request #597 from Csantucci/fix-walking-people
Bug fix for http://www.elvastower.com/forums/index.php?/topic/35981-walking-people-dont-walk-well/
2 parents 10c2adb + 4bf7a3f commit 5ad4c62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/RunActivity/Viewer3D/RollingStock/MSTSLocomotiveViewer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3126,7 +3126,7 @@ public override void PrepareFrame(RenderFrame frame, ElapsedTime elapsedTime)
31263126
}*/ //removed with 3D digits
31273127

31283128
if (TrainCarShape != null)
3129-
TrainCarShape.PrepareFrame(frame, elapsedTime, MatrixVisible);
3129+
TrainCarShape.ConditionallyPrepareFrame(frame, elapsedTime, MatrixVisible);
31303130
}
31313131

31323132
internal override void Mark()

Source/RunActivity/Viewer3D/Shapes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public override void PrepareFrame(RenderFrame frame, ElapsedTime elapsedTime)
287287
SharedShape.PrepareFrame(frame, Location, XNAMatrices, Flags);
288288
}
289289

290-
public void PrepareFrame(RenderFrame frame, ElapsedTime elapsedTime, bool[] matrixVisible = null)
290+
public void ConditionallyPrepareFrame(RenderFrame frame, ElapsedTime elapsedTime, bool[] matrixVisible = null)
291291
{
292292
SharedShape.PrepareFrame(frame, Location, XNAMatrices, Flags, matrixVisible);
293293
}

0 commit comments

Comments
 (0)