RgtMachKernel :

- resa funzionante GetToolPreviewStepCount.
This commit is contained in:
Dario Sassi
2024-05-31 07:58:27 +02:00
parent 719bb994bd
commit 9c73479441
2 changed files with 62 additions and 6 deletions
+10 -1
View File
@@ -1124,7 +1124,16 @@ MachMgr::RemovePreviewMachiningTool( void) const
int
MachMgr::GetPreviewMachiningToolStepCount( void) const
{
return -1 ;
// recupero la lavorazione corrente
int nCurrMchId = GetCurrMachining() ;
if ( nCurrMchId == GDB_ID_NULL)
return 0 ;
// ne recupero il gestore
Machining* pMch = GetMachining( m_pGeomDB->GetUserObj( nCurrMchId)) ;
if ( pMch == nullptr)
return 0 ;
// eseguo
return pMch->GetToolPreviewStepCount() ;
}
//----------------------------------------------------------------------------