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

@@ -885,6 +885,22 @@ void DrawSketchHandler::createAutoConstraints(const std::vector<AutoConstraint>&
}
}
int DrawSketchHandler::seekAndRenderAutoConstraint(
std::vector<AutoConstraint>& suggestedConstraints,
const Base::Vector2d& Pos,
const Base::Vector2d& Dir,
AutoConstraint::TargetType type)
{
if (seekAutoConstraint(suggestedConstraints, Pos, Dir, type)) {
renderSuggestConstraintsCursor(suggestedConstraints);
}
else {
applyCursor();
}
return suggestedConstraints.size();
}
void DrawSketchHandler::renderSuggestConstraintsCursor(
std::vector<AutoConstraint>& suggestedConstraints)
{