mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-05 06:10:33 +05:00
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:
parent
8d2a055f5d
commit
cbfa797d42
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user