EgtMachKernel :

- quando si rimuove un sottopezzo ora viene anche nascosto.
This commit is contained in:
Dario Sassi
2016-11-23 09:48:33 +00:00
parent ae97231305
commit 30c0ee8719
+2 -1
View File
@@ -695,7 +695,7 @@ Disposition::RemoveFixture( int nId)
// verifico aggiornamento tavola
if ( ! m_bTabOk && ! SetTable( m_sTabName))
return false ;
// dichiaro l'oggetto non più usato dalla fase
// dichiaro l'oggetto non più usato dalla fase e lo nascondo
INTVECTOR vPhase ;
if ( ! m_pMchMgr->GetFixturePhases( nId, vPhase))
return false ;
@@ -704,6 +704,7 @@ Disposition::RemoveFixture( int nId)
vPhase.erase( iIter) ;
m_pGeomDB->SetInfo( nId, MACH_FXT_PHASE, vPhase) ;
}
m_pGeomDB->SetStatus( nId, GDB_ST_OFF) ;
// rimuovo l'oggetto dal vettore dei comandi
while ( true) {
auto iIter = find_if( m_vFixData.begin(), m_vFixData.end(),