Skip to content

Commit

Permalink
fix IndexedMeshGeometry clearIndices not actually clearing the total …
Browse files Browse the repository at this point in the history
…number tracked indices back to 0 (#294)
  • Loading branch information
LeHaine authored Dec 14, 2024
1 parent 26ef29c commit 2b44131
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ open class IndexedMeshGeometry(layout: VertexBufferLayout, size: Int = INITIAL_S

/** Clears the indices. */
fun clearIndices() {
numVertices = 0
numIndices = 0
indices.clear()
indicesDirty = true
}
Expand Down

0 comments on commit 2b44131

Please sign in to comment.