RgtMachKernel :
- resa funzionante GetToolPreviewStepCount.
This commit is contained in:
+10
-1
@@ -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() ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user