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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user