Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created June 13, 2015 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/36e304c74d5842f00d08 to your computer and use it in GitHub Desktop.
Save zeffii/36e304c74d5842f00d08 to your computer and use it in GitHub Desktop.
def set_smooth(ob):
mesh = ob.data
smooth_states = [True] * len(mesh.polygons)
mesh.polygons.foreach_set('use_smooth', smooth_states)
mesh.update()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment