diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/python_api/examples/bpy.types.Depsgraph.6.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/python_api/examples/bpy.types.Depsgraph.6.py b/doc/python_api/examples/bpy.types.Depsgraph.6.py index 781d0202931..56e028e8813 100644 --- a/doc/python_api/examples/bpy.types.Depsgraph.6.py +++ b/doc/python_api/examples/bpy.types.Depsgraph.6.py @@ -30,7 +30,7 @@ class OBJECT_OT_simple_exporter(bpy.types.Operator): continue print(f"Exporting mesh with {len(mesh.vertices)} vertices " f"at {object_instance.matrix_world}") - bpy.data.meshes.remove(mesh) + object_instace.to_mesh_clear() return {'FINISHED'} |