diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index fb92aaa..63409f8 100644 Binary files a/EgtMachKernel.rc and b/EgtMachKernel.rc differ diff --git a/Operation.cpp b/Operation.cpp index caca693..cf8141e 100644 --- a/Operation.cpp +++ b/Operation.cpp @@ -1804,10 +1804,14 @@ Operation::AdjustOneStartMovement( int nClPathId, int nPrevClPathId, Operation* // copio l'entità if ( m_pGeomDB->Copy( nEntId, GDB_ID_NULL, nEntId, GDB_AFTER) == GDB_ID_NULL) return false ; + // recupero HomeZ + double dHomeZ ; + if ( ! m_pMchMgr->GetCurrAxisHomePos( 2, dHomeZ)) + return false ; // modifico quella originale (è la prima del percorso) m_pGeomDB->SetName( nEntId, MCH_CL_CLIMB) ; DBLVECTOR vAxNew = vAxCurr ; - vAxNew[2] = vAxPrev[2] ; + vAxNew[2] = dHomeZ ; // eventuali aggiustamenti speciali dipendenti dalla macchina Vector3d vtTool = pCamData->GetToolDir() ; DBLVECTOR vAxTmp = vAxNew ;