Fix for PAL8380(Can't create a Group of Nodes from a group on geometry).

This commit is contained in:
mzn 2005-03-15 12:34:12 +00:00
parent 543af91943
commit dc0d851998

View 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 );