add bmesh.free() to example & template

This commit is contained in:
Campbell Barton 2012-12-01 07:16:08 +00:00
parent 2f97f929a5
commit b290f9a6cc
2 changed files with 3 additions and 0 deletions

@ -95,6 +95,8 @@ bmesh.ops.rotate(
# Finish up, write the bmesh into a new mesh
me = bpy.data.meshes.new("Mesh")
bm.to_mesh(me)
bm.free()
# Add the mesh to the scene
scene = bpy.context.scene

@ -19,3 +19,4 @@ for v in bm.verts:
# Finish up, write the bmesh back to the mesh
bm.to_mesh(me)
bm.free() # free and prevent further access