Skip to content
Snippets Groups Projects
Commit 96b8b425 authored by Fabian Fricke's avatar Fabian Fricke
Browse files

script was not working if nothing was selected

parent 871afd3c
No related branches found
No related tags found
No related merge requests found
......@@ -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!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment