Sketcher: Fix bug of auto-constraints icon not clearing up on mouseMove.
This commit is contained in:
committed by
Chris Hennes
parent
00cc1347b8
commit
ca2f369cab
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user