mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
fix the previous integration
This commit is contained in:
parent
933c23d9cb
commit
ee7c5d0f83
@ -203,13 +203,15 @@ SMESH_2smeshpy::ConvertScript(const TCollection_AsciiString& theScript,
|
|||||||
|
|
||||||
_pyGen::_pyGen(Resource_DataMapOfAsciiStringAsciiString& theEntry2AccessorMethod,
|
_pyGen::_pyGen(Resource_DataMapOfAsciiStringAsciiString& theEntry2AccessorMethod,
|
||||||
Resource_DataMapOfAsciiStringAsciiString& theObjectNames)
|
Resource_DataMapOfAsciiStringAsciiString& theObjectNames)
|
||||||
: _pyObject( new _pyCommand( TPythonDump::SMESHGenName(), 0 )),
|
: _pyObject( new _pyCommand( "", 0 )),
|
||||||
myNbCommands( 0 ),
|
myNbCommands( 0 ),
|
||||||
myID2AccessorMethod( theEntry2AccessorMethod ),
|
myID2AccessorMethod( theEntry2AccessorMethod ),
|
||||||
myObjectNames( theObjectNames ),
|
myObjectNames( theObjectNames ),
|
||||||
myNbFilters( 0 )
|
myNbFilters( 0 )
|
||||||
{
|
{
|
||||||
// make that GetID() to return TPythonDump::SMESHGenName()
|
// make that GetID() to return TPythonDump::SMESHGenName()
|
||||||
|
GetCreationCmd()->Clear();
|
||||||
|
GetCreationCmd()->GetString() = TPythonDump::SMESHGenName();
|
||||||
GetCreationCmd()->GetString() += "=";
|
GetCreationCmd()->GetString() += "=";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -841,6 +843,7 @@ Handle(_pyObject) _pyGen::FindObject( const _pyID& theObjID ) const
|
|||||||
|
|
||||||
bool _pyGen::IsDead(const _pyID& theObjID) const
|
bool _pyGen::IsDead(const _pyID& theObjID) const
|
||||||
{
|
{
|
||||||
|
if ( theObjID.IsEmpty() ) return false;
|
||||||
const bool hasStudyName = myObjectNames.IsBound( theObjID );
|
const bool hasStudyName = myObjectNames.IsBound( theObjID );
|
||||||
return !hasStudyName;
|
return !hasStudyName;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user