From ad8d1ca9156934c3e17e1fa7a1a9603b2352df5f Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 29 Mar 2011 14:19:20 -0400 Subject: [PATCH] fix solve() logic error --- Sketch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sketch.py b/Sketch.py index f069950..3e23a18 100644 --- a/Sketch.py +++ b/Sketch.py @@ -41,4 +41,5 @@ class Sketch(object): r = s.solve() solved_vars = r.xf for i in range(len(solved_vars)): - varid_to_shape_var[i].setVar(solved_vars[i]) + varid_to_shape_var[i][0].setVar(varid_to_shape_var[i][1], + solved_vars[i])