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; break;
case OF_KEY_TAB: case OF_KEY_TAB:
app->getCmdManager()->exec( if(app->getSurfaceManager()->getSelectedSurface() != 0){
new SetNextSourceCmd( app->getCmdManager()->exec(
app->getSurfaceManager()->getSelectedSurface(), new SetNextSourceCmd(
app->getGui()->getSourcesEditor())); app->getSurfaceManager()->getSelectedSurface(),
app->getGui()->getSourcesEditor()));
}
break; break;
} }

Loading…
Cancel
Save