]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix for PAL8380(Can't create a Group of Nodes from a group on geometry).
authormzn <mzn@opencascade.com>
Tue, 15 Mar 2005 12:34:12 +0000 (12:34 +0000)
committermzn <mzn@opencascade.com>
Tue, 15 Mar 2005 12:34:12 +0000 (12:34 +0000)
src/SMESHDS/SMESHDS_Mesh.cxx

index 416da54aa4193cc5765a4b2688f82cda9d5713e0..d3e5d6bb85c8930d390e1ff3b3cbb8245c5a27dc 100644 (file)
@@ -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 );