Sketcher: Fix bug of auto-constraints icon not clearing up on mouseMove.

This commit is contained in:
PaddleStroke
2024-07-08 10:59:45 +02:00
committed by Chris Hennes
parent 00cc1347b8
commit ca2f369cab
17 changed files with 139 additions and 220 deletions

View File

@@ -191,10 +191,7 @@ public:
suppressTransition = false;
if (Mode == STATUS_SEEK_First) {
setPositionText(onSketchPos);
if (seekAutoConstraint(sugConstr1, onSketchPos, Base::Vector2d(0.f, 0.f))) {
renderSuggestConstraintsCursor(sugConstr1);
return;
}
seekAndRenderAutoConstraint(sugConstr1, onSketchPos, Base::Vector2d(0.f, 0.f));
}
else if (Mode == STATUS_SEEK_Second) {
if (SegmentMode == SEGMENT_MODE_Line) {
@@ -231,10 +228,9 @@ public:
}
if (TransitionMode == TRANSITION_MODE_Free) {
if (seekAutoConstraint(sugConstr2, onSketchPos, onSketchPos - EditCurve[0])) {
renderSuggestConstraintsCursor(sugConstr2);
return;
}
seekAndRenderAutoConstraint(sugConstr2,
onSketchPos,
onSketchPos - EditCurve[0]);
}
}
else if (SegmentMode == SEGMENT_MODE_Arc) {
@@ -325,13 +321,9 @@ public:
setPositionText(onSketchPos, text);
}
if (seekAutoConstraint(sugConstr2, onSketchPos, Base::Vector2d(0.f, 0.f))) {
renderSuggestConstraintsCursor(sugConstr2);
return;
}
seekAndRenderAutoConstraint(sugConstr2, onSketchPos, Base::Vector2d(0.f, 0.f));
}
}
applyCursor();
}
bool pressButton(Base::Vector2d onSketchPos) override