in bool _pyGen::IsGeomObject(const _pyID& theObjID) check that

IsStudyEntry( theObjID ), else e.g. "0.00173968" is treated as a
removed geometry and
"NETGEN_2D_Parameters.SetMinSize( 0.00173968 )" leads to erasing a
mesh to which NETGEN_2D_Parameters is assigned.
This commit is contained in:
eap 2012-05-11 11:39:51 +00:00
parent 8d2a055f5d
commit cbfa797d42

View File

@ -1234,7 +1234,8 @@ bool _pyGen::IsGeomObject(const _pyID& theObjID) const
if ( myGeomIDNb )
{
return ( myGeomIDIndex <= theObjID.Length() &&
int( theObjID.Value( myGeomIDIndex )) == myGeomIDNb);
int( theObjID.Value( myGeomIDIndex )) == myGeomIDNb &&
_pyCommand::IsStudyEntry( theObjID ));
}
return false;
}