Browse Source

Integrate `DeselectTexCoordCmd` into `Application`

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

5
src/Application/TextureMappingState.cpp

@ -23,7 +23,12 @@ void TextureMappingState::onKeyPressed(Application * app, ofKeyEventArgs & args)
app->getCmdManager()->exec(
new SelNextTexCoordCmd(app->getGui()->getTextureEditor()));
break;
case ' ':
app->getCmdManager()->exec(
new DeselectTexCoordCmd(app->getGui()->getTextureEditor()));
break;
}
}
} // namespace piMapper

1
src/Application/TextureMappingState.h

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

Loading…
Cancel
Save