EgtExecutor 2.3b2 :

- corretta ExeSaveMachGroupToFile con oggetti copia.
This commit is contained in:
Dario Sassi
2021-02-09 16:16:42 +00:00
parent a37049f280
commit ada2a8b63a
2 changed files with 6 additions and 1 deletions
+6 -1
View File
@@ -514,8 +514,13 @@ ExeSaveMachGroupToFile( int nMGroupId, const string& sFilePath, int nFlag)
while ( nRawId != GDB_ID_NULL) {
int nPartId = pMachMgr->GetFirstPartInRawPart( nRawId) ;
while ( nPartId != GDB_ID_NULL) {
if ( find( vId.begin(), vId.end(), nPartId) == vId.end())
if ( find( vId.begin(), vId.end(), nPartId) == vId.end()) {
vId.emplace_back( nPartId) ;
// potrebbe essere un duplicato, recupero eventuale originale
int nOrigId = GDB_ID_NULL ; pGeomDB->GetInfo( nPartId, GDB_SI_DUPSOU, nOrigId) ;
if ( ExeIsPart( nOrigId) && find( vId.begin(), vId.end(), nOrigId) == vId.end())
vId.emplace_back( nOrigId) ;
}
nPartId = pMachMgr->GetNextPartInRawPart( nPartId) ;
}
nRawId = pMachMgr->GetNextRawPart( nRawId) ;
BIN
View File
Binary file not shown.