diff --git a/lib/src/main/java/com/github/stephengold/vsport/Mesh.java b/lib/src/main/java/com/github/stephengold/vsport/Mesh.java index 9eac0d85..a1cc2210 100644 --- a/lib/src/main/java/com/github/stephengold/vsport/Mesh.java +++ b/lib/src/main/java/com/github/stephengold/vsport/Mesh.java @@ -720,8 +720,8 @@ public String toString() { for (int i = 0; i < numRendered; ++i) { if ((i % vpt) == 0) { + result.append(nl); } - int vertexIndex = (indexBuffer == null) ? i : indexBuffer.get(i); result.append(vertexIndex); result.append(": ");