From 29f96aa28788a4fc8864c2518e972c5c7d1b5dcc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 15 Jul 2010 16:56:27 +0000 Subject: update for changes in blenders api. --- add_curve_torus_knots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'add_curve_torus_knots.py') diff --git a/add_curve_torus_knots.py b/add_curve_torus_knots.py index 9567e08d..fca11213 100644 --- a/add_curve_torus_knots.py +++ b/add_curve_torus_knots.py @@ -108,7 +108,7 @@ def createCurve(vertArray, GEO, align_matrix): # create object with newCurve new_obj = bpy.data.objects.new(name, newCurve) # object scene.objects.link(new_obj) # place in active scene - new_obj.selected = True # set as selected + new_obj.select = True # set as selected scene.objects.active = new_obj # set as active new_obj.matrix_world = align_matrix # apply matrix -- cgit v1.2.3