Fix LodChunk string constructor

This commit is contained in:
James Seibel
2021-06-13 20:18:20 -05:00
parent 79ee23e0b0
commit a29060bf4f
2 changed files with 2 additions and 2 deletions
@@ -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
@@ -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"