Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesh_relax.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mesh_relax.py b/mesh_relax.py
index 211ecfca..c19ea3cd 100644
--- a/mesh_relax.py
+++ b/mesh_relax.py
@@ -57,8 +57,9 @@ def relax_mesh(self, context):
me_name = me_old.name
# deselect everything that's not related
- for o in bpy.context.selected_objects:
- o.selected = False
+ if bpy.context.selected_objects:
+ for o in bpy.context.selected_objects:
+ o.selected = False
# duplicate the object so it can be used for the shrinkwrap modifier
obj.selected = True # make sure the object is selected!