Sketcher: Fix problem where preselectAtPoint was called after the autoconstraints being generated, hence having no effect. By adding updateDataAndDrawToPosition after we regenerate the correct autoconstraint. We cannot just move the mouseMove to after preselectAtPoint because we need to have the enforced position.

This commit is contained in:
PaddleStroke
2024-08-29 12:49:07 +02:00
parent a7aa33f886
commit dca9c0ca3b

View File

@@ -565,6 +565,9 @@ protected:
auto currentstate = handler->state();
// ensure that object at point is preselected, so that autoconstraints are generated
handler->preselectAtPoint(lastControlEnforcedPosition);
// We have to redo an update to regenerate the correct autoconstraints after the
// preselectAtPoint.
handler->updateDataAndDrawToPosition(lastControlEnforcedPosition);
doChangeDrawSketchHandlerMode();