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_mesh_solid.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'add_mesh_solid.py') diff --git a/add_mesh_solid.py b/add_mesh_solid.py index 04a9f6fd..579bb954 100644 --- a/add_mesh_solid.py +++ b/add_mesh_solid.py @@ -85,7 +85,7 @@ def create_mesh_object(context, verts, edges, faces, name, edit): # Use the active obj and select it. ob_new = obj_act - ob_new.selected = True + ob_new.select = True if obj_act.mode == 'OBJECT': # Get existing mesh datablock. @@ -110,7 +110,7 @@ def create_mesh_object(context, verts, edges, faces, name, edit): # Link new object to the given scene and select it. scene.objects.link(ob_new) - ob_new.selected = True + ob_new.select = True # Place the object at the 3D cursor location. ob_new.location = scene.cursor_location @@ -123,7 +123,7 @@ def create_mesh_object(context, verts, edges, faces, name, edit): bpy.ops.object.mode_set(mode='OBJECT') # Select the active object as well. - obj_act.selected = True + obj_act.select = True # Apply location of new object. scene.update() -- cgit v1.2.3