From cbfa797d42683ba1c42c8dfc06ad43881a1e839f Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 11 May 2012 11:39:51 +0000 Subject: [PATCH] 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. --- src/SMESH_I/SMESH_2smeshpy.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SMESH_I/SMESH_2smeshpy.cxx b/src/SMESH_I/SMESH_2smeshpy.cxx index dfacfd77c..21fca4ed9 100644 --- a/src/SMESH_I/SMESH_2smeshpy.cxx +++ b/src/SMESH_I/SMESH_2smeshpy.cxx @@ -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; } -- 2.39.2