diff options
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): |