EgtMachKernel 1.6j6 :
- aggiunta TdbIsCurrToolModified.
This commit is contained in:
@@ -496,6 +496,21 @@ ToolsMgr::SaveCurrTool( void)
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
ToolsMgr::IsCurrToolModified( void)
|
||||
{
|
||||
// verifico validità utensile corrente
|
||||
if ( ! m_bCurrTool)
|
||||
return false ;
|
||||
// recupero puntatore a utensile corrente nel DB
|
||||
auto iIter = m_utData.find( m_tdCurrTool.m_Uuid) ;
|
||||
if ( iIter == m_utData.end())
|
||||
return false ;
|
||||
// eseguo confronto
|
||||
return ! SameTool( m_tdCurrTool, iIter->second) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
ToolsMgr::SetCurrToolParam( int nType, int nVal)
|
||||
|
||||
Reference in New Issue
Block a user