diff --git a/libsrc/meshing/basegeom.cpp b/libsrc/meshing/basegeom.cpp index 63b47bc7..67c5daf3 100644 --- a/libsrc/meshing/basegeom.cpp +++ b/libsrc/meshing/basegeom.cpp @@ -283,8 +283,7 @@ namespace netgen changed = false; for(auto &s : shapes) { - auto current = s->primary; - for(auto & ident : current->identifications) + for(auto & ident : s->identifications) { bool need_inverse = ident.from == s.get(); auto other = need_inverse ? ident.to : ident.from;