_pyGen::_pyGen(Resource_DataMapOfAsciiStringAsciiString& theEntry2AccessorMethod,
Resource_DataMapOfAsciiStringAsciiString& theObjectNames)
- : _pyObject( new _pyCommand( TPythonDump::SMESHGenName(), 0 )),
+ : _pyObject( new _pyCommand( "", 0 )),
myNbCommands( 0 ),
myID2AccessorMethod( theEntry2AccessorMethod ),
myObjectNames( theObjectNames ),
myNbFilters( 0 )
{
// make that GetID() to return TPythonDump::SMESHGenName()
+ GetCreationCmd()->Clear();
+ GetCreationCmd()->GetString() = TPythonDump::SMESHGenName();
GetCreationCmd()->GetString() += "=";
}
bool _pyGen::IsDead(const _pyID& theObjID) const
{
+ if ( theObjID.IsEmpty() ) return false;
const bool hasStudyName = myObjectNames.IsBound( theObjID );
return !hasStudyName;
}