From 6864d0b6f1e31b382a69e6455de771535e272f29 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 17 May 2019 10:43:01 +0200 Subject: API Docs: fix mistake in example code --- doc/python_api/examples/bpy.types.Depsgraph.6.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/python_api/examples') 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'} -- cgit v1.2.3