From e3c9d19e9a2e3c8fd1f6366dc0d56c3e9142ae2c Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 4 Aug 2011 14:39:15 -0400 Subject: [PATCH] connect to snap points when creating a circle --- SketchWidget.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SketchWidget.py b/SketchWidget.py index 5794189..112a5e7 100644 --- a/SketchWidget.py +++ b/SketchWidget.py @@ -455,7 +455,13 @@ class SketchWidget: def do_circle_left_click(self, x, y): pt = self.screenPtToPt((x, self.size[1] - y)) if self.drawingShape is None: + hsp = self.hover_snap_ptref + if hsp is not None: + pt = hsp.getPt() self.drawingShape = Circle(pt[0], pt[1], 0) + if hsp is not None: + c = Connect(hsp.shape, hsp.ptNum, self.drawingShape, 0) + self.drawingConstraints['c'] = c else: self.add_snap_ptrefs_from_shape(self.drawingShape) self.merge_in_drawing_shape()