EgtExecutor :

- migliorata gestione aggiornamento dati lavorazioni su nuovo e apri file.
This commit is contained in:
Dario Sassi
2017-01-04 07:38:01 +00:00
parent e0d7a50626
commit c0fb5b2010
+7 -4
View File
@@ -267,8 +267,9 @@ ExeNewFile( void)
bool bPrevCmdLog = SetCmdLog( false) ;
ExeResetCurrPartLayer() ;
SetCmdLog( bPrevCmdLog) ;
// aggiornamento gestore lavorazioni
ExeUpdateMachMgr() ;
// aggiornamento gestore lavorazioni (se installato)
if ( GetCurrMachMgr() != nullptr)
ExeUpdateMachMgr() ;
// se richiesto, salvo il comando Lua equivalente
if ( IsCmdLog()) {
string sLua = "EgtNewFile()"
@@ -293,7 +294,8 @@ ExeOpenFile( const string& sFilePath)
if ( pGseCtx->m_pScene != nullptr)
bOk = bOk && pGseCtx->m_pScene->UnloadAllTextures() ;
// pulizia gestore lavorazioni (necessaria qui)
ExeUpdateMachMgr() ;
if ( GetCurrMachMgr() != nullptr)
ExeUpdateMachMgr() ;
// imposto path corrente del file
pGseCtx->m_sFilePath = sFilePath ;
// carico il file
@@ -305,7 +307,8 @@ ExeOpenFile( const string& sFilePath)
ExeResetCurrPartLayer() ;
SetCmdLog( bPrevCmdLog) ;
// aggiornamento gestore lavorazioni
ExeUpdateMachMgr() ;
if ( GetCurrMachMgr() != nullptr)
ExeUpdateMachMgr() ;
// se richiesto, salvo il comando Lua equivalente
if ( IsCmdLog()) {
string sLua = "EgtOpenFile('" + StringToLuaString( sFilePath) + "')" +