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 /mesh_relax.py | |
parent | f15da84f3619b91098e60ab3ca369396cafd7196 (diff) |
update for changes in blenders api.
Diffstat (limited to 'mesh_relax.py')
-rw-r--r-- | mesh_relax.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mesh_relax.py b/mesh_relax.py index ce70b038..7d3410d7 100644 --- a/mesh_relax.py +++ b/mesh_relax.py @@ -57,13 +57,13 @@ def relax_mesh(context): # deselect everything that's not related for obj in context.selected_objects: - obj.selected = False + obj.select = False # get active object obj = context.active_object # duplicate the object so it can be used for the shrinkwrap modifier - obj.selected = True # make sure the object is selected! + obj.select = True # make sure the object is selected! bpy.ops.object.mode_set(mode='OBJECT') bpy.ops.object.duplicate() target = context.active_object @@ -86,12 +86,12 @@ def relax_mesh(context): bpy.ops.object.modifier_apply(modifier='relax_target') # delete the target object - obj.selected = False - target.selected = True + obj.select = False + target.select = True bpy.ops.object.delete() # go back to initial state - obj.selected = True + obj.select = True bpy.ops.object.mode_set(mode='EDIT') class Relax(bpy.types.Operator): |