fix CheckGeomGroupModif() for the case of a mesh on a geom group

This commit is contained in:
eap 2013-03-22 15:33:42 +00:00
parent 76e8fd2ab5
commit 634ea8043b

View File

@ -1984,12 +1984,12 @@ void SMESH_Mesh_i::CheckGeomGroupModif()
list<const SMESHDS_Hypothesis*>& hyps = indS_hyps->second; list<const SMESHDS_Hypothesis*>& hyps = indS_hyps->second;
int oldID = geom._index; int oldID = geom._index;
int newID = meshDS->ShapeToIndex( geom._shape ); int newID = meshDS->ShapeToIndex( geom._shape );
if ( !newID )
continue;
if ( oldID == 1 ) { // main shape if ( oldID == 1 ) { // main shape
newID = 1; newID = 1;
geom._shape = newShape; geom._shape = newShape;
} }
if ( !newID )
continue;
for ( hypIt = hyps.begin(); hypIt != hyps.end(); ++hypIt ) for ( hypIt = hyps.begin(); hypIt != hyps.end(); ++hypIt )
_impl->AddHypothesis( geom._shape, (*hypIt)->GetID()); _impl->AddHypothesis( geom._shape, (*hypIt)->GetID());
// care of submeshes // care of submeshes