Browse Source

Fix crashing when hitting tab in texture edit mode

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

10
src/Application/TextureMappingState.cpp

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

Loading…
Cancel
Save