diff --git a/src/Application/TextureMappingState.cpp b/src/Application/TextureMappingState.cpp index 67881de..2350c90 100644 --- a/src/Application/TextureMappingState.cpp +++ b/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 diff --git a/src/Application/TextureMappingState.h b/src/Application/TextureMappingState.h index 4a84084..68d17ca 100644 --- a/src/Application/TextureMappingState.h +++ b/src/Application/TextureMappingState.h @@ -5,6 +5,7 @@ #include "ofLog.h" #include "ofGraphics.h" #include "SelNextTexCoordCmd.h" +#include "DeselectTexCoordCmd.h" namespace ofx { namespace piMapper {