add bmesh.free() to example & template
This commit is contained in:
parent
2f97f929a5
commit
b290f9a6cc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user