Skip to content

Commit

Permalink
Fix turntable rails not being regauged
Browse files Browse the repository at this point in the history
  • Loading branch information
Insprill committed Jul 3, 2023
1 parent cc8c247 commit 2b11836
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.2.1:
- Fixed turntable rails not being regauged.


1.2.0:
- Added support for Simulator.
- Switched to BepInEx.
Expand Down
1 change: 1 addition & 0 deletions Gauge/Assets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public static Mesh GetMesh([NotNull] string name)
{
switch (name)
{
case "TurntableRail":
case "TurntableRail.002":
if (Meshes.TryGetValue(name, out Mesh railMesh))
return railMesh;
Expand Down
5 changes: 2 additions & 3 deletions Gauge/Patches/WorldStreamingInitPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,11 @@ private static void HandleMesh(string name, Mesh mesh, Component component)
break;
// Roundhouse rails
case "TurntableRail.002":
// Turntable rails
case "TurntableRail":
// Switch ballast
case "ballast" when Gauge.Instance.Settings.adjustBallastWidth.Value:
case "ballast-outersign" when Gauge.Instance.Settings.adjustBallastWidth.Value:
// Turntable rails
case "TurntableRail":
case "TurntableRail_ShadowCaster":
// Buffer stops
case "buffer_stop_rails":
case "buffer_stop_rails_LOD1":
Expand Down
1 change: 1 addition & 0 deletions GaugeBundleBuilder/Assets/Meshes/meshes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,4 @@ sleeper_single.obj
sleepers-outersign.obj
sleepers.obj
TurntableRail.002.obj
TurntableRail.obj

0 comments on commit 2b11836

Please sign in to comment.