Re-enabled toggle of sticky vertices.

This commit is contained in:
Tats
2015-07-11 16:30:30 -06:00
parent 64bbd94f9a
commit 549c30fcd9
+2 -1
View File
@@ -54,7 +54,8 @@ bool ShapeGraphicsItem::sceneEventFilter(QGraphicsItem * watched, QEvent * event
QPointF pos = mouseEvent->scenePos();
// Sticky vertex.
_glueVertex(&pos);
if (MainWindow::instance()->stickyVertices())
_glueVertex(&pos);
// qDebug() << moveEvent->oldPos() << " " << pos << " " << childItems().at(idx)->pos() << endl;
_shape->setVertex(idx, pos);