From: mzn Date: Tue, 15 Mar 2005 12:32:15 +0000 (+0000) Subject: Fix for PAL8380(Can't create a Group of Nodes from a group on geometry). X-Git-Tag: T_3_0_0_a1~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ec914f9caa8706544e70e5b51d36235c4fcfc94a;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 );