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): ...@@ -57,8 +57,9 @@ def relax_mesh(self, context):
me_name = me_old.name me_name = me_old.name
# deselect everything that's not related # deselect everything that's not related
for o in bpy.context.selected_objects: if bpy.context.selected_objects:
o.selected = False for o in bpy.context.selected_objects:
o.selected = False
# duplicate the object so it can be used for the shrinkwrap modifier # duplicate the object so it can be used for the shrinkwrap modifier
obj.selected = True # make sure the object is selected! 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.
Please register or to comment