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