From 0f290febc4a7fa74b82fbfb31d411007127fde1e Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Sat, 27 Feb 2016 16:52:02 +0100 Subject: [PATCH] Integrate `SelPrevTexCoordCmd` into `Application` --- src/Application/TextureMappingState.cpp | 5 +++++ src/Application/TextureMappingState.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/Application/TextureMappingState.cpp b/src/Application/TextureMappingState.cpp index 2350c90..4ef45b2 100644 --- a/src/Application/TextureMappingState.cpp +++ b/src/Application/TextureMappingState.cpp @@ -23,6 +23,11 @@ void TextureMappingState::onKeyPressed(Application * app, ofKeyEventArgs & args) app->getCmdManager()->exec( new SelNextTexCoordCmd(app->getGui()->getTextureEditor())); break; + case '<': + app->getCmdManager()->exec( + new SelPrevTexCoordCmd(app->getGui()->getTextureEditor())); + break; + case ' ': app->getCmdManager()->exec( new DeselectTexCoordCmd(app->getGui()->getTextureEditor())); diff --git a/src/Application/TextureMappingState.h b/src/Application/TextureMappingState.h index 68d17ca..12e37f5 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 "SelPrevTexCoordCmd.h" #include "DeselectTexCoordCmd.h" namespace ofx {