From 9a6608a6fc31a307ad02131b802c121b7e23c640 Mon Sep 17 00:00:00 2001 From: Pierre Anquez Date: Tue, 17 Feb 2026 14:17:05 +0100 Subject: [PATCH] fix(Model): fix memory issue in delete_isolated_vertices() --- src/geode/model/mixin/core/vertex_identifier.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/geode/model/mixin/core/vertex_identifier.cpp b/src/geode/model/mixin/core/vertex_identifier.cpp index 47c5a455a..152ca4282 100644 --- a/src/geode/model/mixin/core/vertex_identifier.cpp +++ b/src/geode/model/mixin/core/vertex_identifier.cpp @@ -342,7 +342,12 @@ namespace geode vertex2unique_vertex_.at( component_vertices.first ); for( const auto v : component_vertices.second ) { - attribute->set_value( v, old2new[attribute->value( v )] ); + const auto value = attribute->value( v ); + if( value == NO_ID ) + { + continue; + } + attribute->set_value( v, old2new[value] ); } } return old2new;