Issue 21428: [CEA] Dump Python produces incorrect output in SMESH

Correction taken from SALOME 6.4.0 and integrated into BR_PPGP_Dev for PPGP v0.1 production needs.
This commit is contained in:
san 2011-11-18 09:45:32 +00:00
parent 13c60ab0d1
commit b8faab8fc3

View File

@ -423,7 +423,9 @@ void _pyGen::Process( const Handle(_pyCommand)& theCommand )
// objects erasing creation command if no more it's commands invoked:
// SMESH_Pattern, FilterManager
if ( method == "GetPattern" || method == "CreateFilterManager" ) {
if ( method == "GetPattern" ||
method == "CreateFilterManager" ||
method == "CreateMeasurements" ) {
Handle(_pyObject) obj = new _pySelfEraser( theCommand );
if ( !myObjects.insert( make_pair( obj->GetID(), obj )).second )
theCommand->Clear(); // already created