Skip to content

Commit de8687a

Browse files
committed
fix(SurfaceMesh): reset polygons around vertex at vertex replacement
1 parent 2ed5bfb commit de8687a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/geode/mesh/builder/surface_mesh_builder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ namespace geode
382382
{
383383
return;
384384
}
385-
const auto polygons_around =
385+
const auto& polygons_around =
386386
surface_mesh_.polygons_around_vertex( old_vertex_id );
387387
disassociate_polygon_vertex_to_vertex( old_vertex_id );
388388
for( const auto& polygon_around : polygons_around )
@@ -401,6 +401,7 @@ namespace geode
401401
}
402402
update_polygon_vertex( polygon_around, new_vertex_id );
403403
}
404+
reset_polygons_around_vertex( old_vertex_id );
404405
}
405406

406407
template < index_t dimension >

0 commit comments

Comments
 (0)