diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-15 20:56:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-15 20:56:27 +0400 |
commit | 29f96aa28788a4fc8864c2518e972c5c7d1b5dcc (patch) | |
tree | 75795a36193853317448262e8817e2461a6660ad /add_mesh_3d_function_surface.py | |
parent | f15da84f3619b91098e60ab3ca369396cafd7196 (diff) |
update for changes in blenders api.
Diffstat (limited to 'add_mesh_3d_function_surface.py')
-rw-r--r-- | add_mesh_3d_function_surface.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/add_mesh_3d_function_surface.py b/add_mesh_3d_function_surface.py index 6d8b609d..79a01ae4 100644 --- a/add_mesh_3d_function_surface.py +++ b/add_mesh_3d_function_surface.py @@ -170,7 +170,7 @@ def create_mesh_object(context, verts, edges, faces, name, edit, align_matrix): # 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. @@ -195,7 +195,7 @@ def create_mesh_object(context, verts, edges, faces, name, edit, align_matrix): # 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. # apply viewRotaion @@ -207,7 +207,7 @@ def create_mesh_object(context, verts, edges, faces, name, edit, align_matrix): 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() |