EgtExecutor 1.6i6 :

- corretta gestione riferimenti nelle operazione booleane delle regioni
- migliorata gestione abilitazione segnalazione modifiche.
This commit is contained in:
Dario Sassi
2015-09-13 17:40:55 +00:00
parent cb081bbcf6
commit b2469b944d
6 changed files with 41 additions and 27 deletions
+7 -6
View File
@@ -249,7 +249,7 @@ ExeNewFile( void)
bOk = bOk && pGseCtx->m_pGeomDB->SetDefaultMaterial( pGseCtx->m_colDef) ;
// aggiorno stato file corrente
pGseCtx->m_sFilePath.clear() ;
pGseCtx->m_bModified = false ;
ExeResetModified() ;
// aggiornamento gestore lavorazioni
ExeUpdateMachMgr() ;
// se richiesto, salvo il comando Lua equivalente
@@ -276,7 +276,7 @@ ExeOpenFile( const string& sFilePath)
bOk = bOk && pGseCtx->m_pGeomDB->Load( sFilePath) ;
// aggiorno stato file corrente
pGseCtx->m_sFilePath = sFilePath ;
pGseCtx->m_bModified = false ;
ExeResetModified() ;
// aggiornamento gestore lavorazioni
ExeUpdateMachMgr() ;
// se richiesto, salvo il comando Lua equivalente
@@ -314,12 +314,13 @@ ExeInsertFile( const string& sFilePath)
// passo al prossimo
nId = nNextId ;
}
// sistemo le lavorazioni
bOk = bOk && ExeInsertMachMgr( nGrp) ;
// se gestite, sistemo le lavorazioni
if ( GetCurrMachMgr() != nullptr)
bOk = bOk && ExeInsertMachMgr( nGrp) ;
// cancello il gruppo temporaneo
pGeomDB->Erase( nGrp) ;
// aggiorno stato file corrente
pGseCtx->m_bModified = true ;
ExeSetModified() ;
// se richiesto, salvo il comando Lua equivalente
if ( IsCmdLog()) {
string sLua = "EgtInsertFile('" + StringToLuaString( sFilePath) + "')" +
@@ -347,7 +348,7 @@ ExeSaveFile( const string& sFilePath, int nFlag)
// aggiorno stato file corrente
pGseCtx->m_sFilePath = sFilePath ;
if ( bOk)
pGseCtx->m_bModified = false ;
ExeResetModified() ;
// se richiesto, salvo il comando Lua equivalente
if ( IsCmdLog()) {
string sLua = "EgtSaveFile('" + StringToLuaString( sFilePath) + "'," +