mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Re-enabled toggle of sticky vertices.
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user