Changing curved path settings should not trigger visibility of control points.

This commit is contained in:
Roman Telezhynskyi 2024-04-17 17:55:02 +03:00
parent b78adf9264
commit 1394204c65

View File

@ -82,10 +82,10 @@ VControlPointSpline::VControlPointSpline(const vsizetype &indexSpline, SplinePoi
{ {
Init(); Init();
this->setPos(controlPoint);
this->setFlag(QGraphicsItem::ItemIsMovable, true); this->setFlag(QGraphicsItem::ItemIsMovable, true);
this->setFlag(QGraphicsItem::ItemSendsGeometryChanges, true); this->setFlag(QGraphicsItem::ItemSendsGeometryChanges, true);
this->setAcceptHoverEvents(true); this->setAcceptHoverEvents(true);
this->setPos(controlPoint);
// Do not draw control point in constructor. It creates artefacts if they enabled from start. // Do not draw control point in constructor. It creates artefacts if they enabled from start.
} }