clear drawingShape/drawingConstraints on new mode

This commit is contained in:
Josh Holtrop 2011-07-27 22:40:16 -04:00
parent 895fa54ed7
commit 47ac5cb3fd

View File

@ -367,6 +367,8 @@ class SketchWidget:
else:
self.widget.window.set_cursor(self.cursors['arrow'])
self.mode = mode
self.drawingShape = None
self.drawingConstraints = []
def do_line_left_click(self, x, y):
start = self.screenPtToPt((x, self.size[1] - y))