Browse Source

Fix crashing when hitting tab in texture edit mode

master
Krisjanis Rijnieks 9 years ago
parent
commit
de774a5c0e
  1. 2
      src/Application/TextureMappingState.cpp

2
src/Application/TextureMappingState.cpp

@ -35,10 +35,12 @@ void TextureMappingState::onKeyPressed(Application * app, ofKeyEventArgs & args)
break; break;
case OF_KEY_TAB: case OF_KEY_TAB:
if(app->getSurfaceManager()->getSelectedSurface() != 0){
app->getCmdManager()->exec( app->getCmdManager()->exec(
new SetNextSourceCmd( new SetNextSourceCmd(
app->getSurfaceManager()->getSelectedSurface(), app->getSurfaceManager()->getSelectedSurface(),
app->getGui()->getSourcesEditor())); app->getGui()->getSourcesEditor()));
}
break; break;
} }

Loading…
Cancel
Save