Browse Source

Integrate `SelPrevTexCoordCmd` into `Application`

master
Krisjanis Rijnieks 9 years ago
parent
commit
0f290febc4
  1. 5
      src/Application/TextureMappingState.cpp
  2. 1
      src/Application/TextureMappingState.h

5
src/Application/TextureMappingState.cpp

@ -23,6 +23,11 @@ void TextureMappingState::onKeyPressed(Application * app, ofKeyEventArgs & args)
app->getCmdManager()->exec( app->getCmdManager()->exec(
new SelNextTexCoordCmd(app->getGui()->getTextureEditor())); new SelNextTexCoordCmd(app->getGui()->getTextureEditor()));
break; break;
case '<':
app->getCmdManager()->exec(
new SelPrevTexCoordCmd(app->getGui()->getTextureEditor()));
break;
case ' ': case ' ':
app->getCmdManager()->exec( app->getCmdManager()->exec(
new DeselectTexCoordCmd(app->getGui()->getTextureEditor())); new DeselectTexCoordCmd(app->getGui()->getTextureEditor()));

1
src/Application/TextureMappingState.h

@ -5,6 +5,7 @@
#include "ofLog.h" #include "ofLog.h"
#include "ofGraphics.h" #include "ofGraphics.h"
#include "SelNextTexCoordCmd.h" #include "SelNextTexCoordCmd.h"
#include "SelPrevTexCoordCmd.h"
#include "DeselectTexCoordCmd.h" #include "DeselectTexCoordCmd.h"
namespace ofx { namespace ofx {

Loading…
Cancel
Save