EgtMachKernel 1.6l2 :

- possibile rendere corrente testa con utensile nullo (per laser e simili).
This commit is contained in:
Dario Sassi
2015-12-14 07:44:04 +00:00
parent 1e0f0176cc
commit 629fda20d1
4 changed files with 31 additions and 12 deletions
+5
View File
@@ -467,6 +467,11 @@ ToolsMgr::VerifyTool( int nFamily, string& sName, int& nType) const
bool
ToolsMgr::SetCurrTool( const std::string& sName)
{
// se nome vuoto, faccio reset
if ( sName.empty()) {
m_bCurrTool = false ;
return false ;
}
// recupero i dati dell'utensile
const ToolData* ptData = GetTool( sName) ;
if ( ptData == nullptr) {