From 855de072bef34d66e635d21eeef57c0b27accdfb Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 11 Jan 2017 04:16:48 +0000 Subject: [PATCH] Automatically constrain arc or rectangle points. --- CHANGELOG.md | 2 ++ src/mouse.cpp | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bad5823..7e2220d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,8 @@ New sketch features: the entity from a request is selected. For example, dragging a point on a face of an extrusion coincident with the source sketch plane will drag the point from the source sketch. + * When dragging an arc or rectangle point, it will be automatically + constrained to other points with a click. New export/import features: * Three.js: allow configuring projection for exported model, and initially diff --git a/src/mouse.cpp b/src/mouse.cpp index 480a53f..9700b1c 100644 --- a/src/mouse.cpp +++ b/src/mouse.cpp @@ -1108,11 +1108,10 @@ void GraphicsWindow::MouseLeftDown(double mx, double my) { break; case Pending::DRAGGING_RADIUS: - case Pending::DRAGGING_NEW_POINT: - // The MouseMoved event has already dragged it as desired. ClearPending(); break; + case Pending::DRAGGING_NEW_POINT: case Pending::DRAGGING_NEW_ARC_POINT: ConstrainPointByHovered(pending.point); ClearPending();