From 430996bb44cb4d7e103bd99d33025073cc28aadc Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Mon, 2 Jan 2017 22:47:10 +0100 Subject: [PATCH] Fix select next and prev surface on > and < keypress There was no check whether a surface is selected and thus an undoable command was created, which is not what should happen. --- src/Application/Modes/ProjectionMappingMode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Application/Modes/ProjectionMappingMode.cpp b/src/Application/Modes/ProjectionMappingMode.cpp index 114c9eb..62ca5b4 100644 --- a/src/Application/Modes/ProjectionMappingMode.cpp +++ b/src/Application/Modes/ProjectionMappingMode.cpp @@ -170,11 +170,11 @@ void ProjectionMappingMode::onKeyPressed(Application * app, ofKeyEventArgs & arg break; case '>': - app->getCmdManager()->exec(new SelNextVertexCmd(app->getSurfaceManager())); + selectNextVertex(app); break; case '<': - app->getCmdManager()->exec(new SelPrevVertexCmd(app->getSurfaceManager())); + selectPrevVertex(app); break; case OF_KEY_UP: