Browse Source

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.
master
Krisjanis Rijnieks 9 years ago
parent
commit
430996bb44
  1. 4
      src/Application/Modes/ProjectionMappingMode.cpp

4
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:

Loading…
Cancel
Save