Skip to content

Commit

Permalink
Merge pull request #58 from al2me6/3d-orbit-fix
Browse files Browse the repository at this point in the history
Fix logspam in non-flight scenes with `force3DOrbits` enabled
  • Loading branch information
R-T-B committed May 31, 2021
2 parents e4a6219 + 70ab336 commit 1f12f6b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Kopernicus/RuntimeUtility/RuntimeUtility.cs
Expand Up @@ -572,9 +572,11 @@ private static void Force3DRendering()
{
return;
}

MapView.fetch.max3DlineDrawDist = Single.MaxValue;
GameSettings.MAP_MAX_ORBIT_BEFORE_FORCE2D = Int32.MaxValue;
if (MapView.fetch)
{
MapView.fetch.max3DlineDrawDist = Single.MaxValue;
GameSettings.MAP_MAX_ORBIT_BEFORE_FORCE2D = Int32.MaxValue;
}
}

// The preset names
Expand Down

0 comments on commit 1f12f6b

Please sign in to comment.