diff --git a/src/geode/io/model/gid_output.cpp b/src/geode/io/model/gid_output.cpp index e138f76..3e1aa5c 100644 --- a/src/geode/io/model/gid_output.cpp +++ b/src/geode/io/model/gid_output.cpp @@ -273,6 +273,14 @@ namespace geode::internal { return false; } + const auto attribute_ids = + surface.mesh() + .polygon_attribute_manager() + .attribute_ids_matching_name( FRACSIMA_ATTRIBUTE_NAME ); + if( !attribute_ids ) + { + return false; + } } for( const auto& block : brep.blocks() ) { @@ -281,6 +289,14 @@ namespace geode::internal { return false; } + const auto attribute_ids = + block.mesh() + .polyhedron_attribute_manager() + .attribute_ids_matching_name( FRACSIMA_ATTRIBUTE_NAME ); + if( !attribute_ids ) + { + return false; + } } return true; }