toonz/sources/toonz/mainwindow.cpp
void MainWindow::toggleEraserNextType() {
  if (TApp::instance()->getCurrentTool()->getTool()->getName() == T_Eraser)
    CommandManager::instance()->getAction("A_ToolOption_Type")->trigger();
  else
    CommandManager::instance()->getAction(T_Eraser)->trigger();
}
//---------------------------------------------------------------------------------------
/*-- Eraser tool + type switching shortcuts --*/
Eraser tool + type switching shortcuts
Eraser tool + type switching shortcuts
void MainWindow::toggleEraserNextType() {
  if (TApp::instance()->getCurrentTool()->getTool()->getName() == T_Eraser)
    CommandManager::instance()->getAction("A_ToolOption_Type")->trigger();
  else
    CommandManager::instance()->getAction(T_Eraser)->trigger();
}
void MainWindow :: toggleEraserNextType ( ) { if ( TApp :: instance ( ) -> getCurrentTool ( ) -> getTool ( ) -> getName ( ) == T_Eraser ) CommandManager :: instance ( ) -> getAction ( " " ) -> trigger ( ) ; else CommandManager :: instance ( ) -> getAction ( T_Eraser ) -> trigger ( ) ; }
Eraser tool + type switching shortcuts
Eraser tool + type switching shortcuts