Browse Source

Do not exec Sel..TexCoordCmd in tex mode if no surface selected

master
Krisjanis Rijnieks 9 years ago
parent
commit
517cbf1e69
  1. 6
      src/Application/Modes/TextureMappingMode.cpp

6
src/Application/Modes/TextureMappingMode.cpp

@ -113,11 +113,17 @@ void TextureMappingMode::onKeyPressed(Application * app, ofKeyEventArgs & args){
break;
case '>':
if(app->getSurfaceManager()->getSelectedSurface() == 0){
return;
}
app->getCmdManager()->exec(
new SelNextTexCoordCmd(&Gui::instance()->getTextureEditorWidget()));
break;
case '<':
if(app->getSurfaceManager()->getSelectedSurface() == 0){
return;
}
app->getCmdManager()->exec(
new SelPrevTexCoordCmd(&Gui::instance()->getTextureEditorWidget()));
break;

Loading…
Cancel
Save