From: mzn Date: Tue, 15 Mar 2005 12:34:12 +0000 (+0000) Subject: Fix for PAL8380(Can't create a Group of Nodes from a group on geometry). X-Git-Tag: V2_2_2~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dc0d851998bd437415edaac751b322d4d090935d;p=modules%2Fsmesh.git Fix for PAL8380(Can't create a Group of Nodes from a group on geometry). --- diff --git a/src/SMESHDS/SMESHDS_Mesh.cxx b/src/SMESHDS/SMESHDS_Mesh.cxx index 416da54aa..d3e5d6bb8 100644 --- a/src/SMESHDS/SMESHDS_Mesh.cxx +++ b/src/SMESHDS/SMESHDS_Mesh.cxx @@ -855,7 +855,7 @@ int SMESHDS_Mesh::AddCompoundSubmesh(const TopoDS_Shape& S, TopAbs_ShapeEnum type) { int aMainIndex = 0; - if ( IsGroupOfSubShapes( S )) + if ( IsGroupOfSubShapes( S ) || (S.ShapeType() == TopAbs_VERTEX && myIndexToShape.Contains(S)) ) { aMainIndex = myIndexToShape.Add( S ); bool all = ( type == TopAbs_SHAPE );