From a29060bf4feb4b3b125752f403db1dcf4ef7d599 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sun, 13 Jun 2021 20:18:20 -0500 Subject: [PATCH] Fix LodChunk string constructor --- src/main/java/com/seibel/lod/objects/LodChunk.java | 2 +- src/main/java/com/seibel/lod/util/LodConfig.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/seibel/lod/objects/LodChunk.java b/src/main/java/com/seibel/lod/objects/LodChunk.java index e2213e0b0..5fe8c22a7 100644 --- a/src/main/java/com/seibel/lod/objects/LodChunk.java +++ b/src/main/java/com/seibel/lod/objects/LodChunk.java @@ -82,6 +82,7 @@ public class LodChunk // make sure there are the correct number of entries // in the data string int count = 0; + detail = newDetail; for(int i = 0; i < data.length(); i++) if(data.charAt(i) == DATA_DELIMITER) @@ -91,7 +92,6 @@ public class LodChunk throw new IllegalArgumentException("LodChunk constructor givin an invalid string. The data given had " + count + " delimiters when it should have had " + detail.lodChunkStringDelimiterCount + "."); - detail = newDetail; dataPoints = new LodDataPoint[detail.lengthCount][detail.lengthCount]; // index we will use when going through the String diff --git a/src/main/java/com/seibel/lod/util/LodConfig.java b/src/main/java/com/seibel/lod/util/LodConfig.java index 443122b9d..6d6bb4d08 100644 --- a/src/main/java/com/seibel/lod/util/LodConfig.java +++ b/src/main/java/com/seibel/lod/util/LodConfig.java @@ -82,7 +82,7 @@ public class LodConfig + " How detailed should the LODs be? \n" + " " + LodDetail.SINGLE.toString() + ": render 1 LOD for each Chunk. \n" + " " + LodDetail.DOUBLE.toString() + ": render 4 LODs for each Chunk.") - .defineEnum("lodGeometryQuality", LodDetail.SINGLE); + .defineEnum("lodGeometryQuality", LodDetail.QUAD); lodChunkRadiusMultiplier = builder .comment("\n"