From adf6690469fd38acdaa7f71d368b4cbba785f78c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Dukai?= Date: Thu, 6 Apr 2023 15:32:10 +0200 Subject: [PATCH] Do increase vertex count --- src/parser.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index d3fdffb..7d75cf2 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -258,7 +258,8 @@ impl World { // increase the vertex count, because the vertices have been counted // already, these might be cells where the object does not actually have a // vertex. - *cell_vtx_cnt.entry(cellid).or_insert(0) += 0; + // REVIEW: actually, let's just increase the vertex count + *cell_vtx_cnt.entry(cellid).or_insert(1) += 1; } }