Small fix: Switch between vertex with Shift+Space keys

This commit is contained in:
baydam
2016-05-13 13:08:01 +00:00
parent 75c6a25dbf
commit 3759184588
+1 -4
View File
@@ -436,10 +436,7 @@ void MapperGLCanvas::keyPressEvent(QKeyEvent* event)
// SHIFT+Space to switch between vertex
else if (event->key() == Qt::Key_Space)
{
if (shape)
{
_activeVertex = (_activeVertex + 1) % shape->nVertices();
}
_activeVertex = (_activeVertex + 1) % shape->nVertices();
pos = shape->getVertex(_activeVertex).toPoint(); // reset to new vertex
}
else