EgtExecutor 1.6u1 :
- con NewFile si fa reset di Pezzo/layer correnti.
This commit is contained in:
@@ -139,7 +139,7 @@ ExeSetCurrPartLayer( int nPartId, int nLayerId)
|
||||
bOk = false ;
|
||||
}
|
||||
// verifico validità e visibilità layer
|
||||
if ( pGeomDB->GetParentId( nLayerId) == nPartId &&
|
||||
if ( pGeomDB->GetParentId( nLayerId) == pGseCtx->m_nCurrPart &&
|
||||
ExeIsUserObj( pGeomDB, nLayerId) &&
|
||||
ExeIsVisibleObj( pGeomDB, nLayerId)) {
|
||||
pGseCtx->m_nCurrLayer = nLayerId ;
|
||||
|
||||
@@ -263,6 +263,8 @@ ExeNewFile( void)
|
||||
// aggiorno stato file corrente
|
||||
pGseCtx->m_sFilePath.clear() ;
|
||||
ExeResetModified() ;
|
||||
// aggiorno pezzo/layer correnti
|
||||
ExeResetCurrPartLayer() ;
|
||||
// aggiornamento gestore lavorazioni
|
||||
ExeUpdateMachMgr() ;
|
||||
// se richiesto, salvo il comando Lua equivalente
|
||||
@@ -296,6 +298,8 @@ ExeOpenFile( const string& sFilePath)
|
||||
bOk = bOk && pGseCtx->m_pGeomDB->Load( sFilePath) ;
|
||||
// aggiorno stato file corrente
|
||||
ExeResetModified() ;
|
||||
// aggiorno pezzo/layer correnti
|
||||
ExeResetCurrPartLayer() ;
|
||||
// aggiornamento gestore lavorazioni
|
||||
ExeUpdateMachMgr() ;
|
||||
// se richiesto, salvo il comando Lua equivalente
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user