diff --git a/Milling.cpp b/Milling.cpp index cb040a6..744366c 100644 --- a/Milling.cpp +++ b/Milling.cpp @@ -3347,7 +3347,9 @@ Milling::AddOneWayMilling( const ICurveComposite* pCompo, const Vector3d& vtTool dSawStartElev = dSawStartElev2 ; bSideStart = true ; } - } + } + if ( bSideStart) + bMidRetract = true ; if ( ! bGeomAboveStart && ! bAhUnderStart && ! bUhAboveStart && ! bSideStart && bOk) { m_pMchMgr->SetLastError( 2314, "Error in Milling : LeadIn must be out of rawpart") ; bOk = false ; @@ -3538,6 +3540,8 @@ Milling::AddOneWayMilling( const ICurveComposite* pCompo, const Vector3d& vtTool bSideEnd = true ; } } + if ( bSideEnd) + bMidRetract = true ; if ( ! bGeomAboveEnd && ! bAhUnderEnd && ! bUhAboveEnd && ! bSideEnd && bOk) { m_pMchMgr->SetLastError( 2324, "Error in Milling : LeadOut must be out of rawpart") ; bOk = false ;