[Bf-blender-cvs] [6864d0b6f1e] master: API Docs: fix mistake in example code

Brecht Van Lommel noreply at git.blender.org
Fri May 17 10:43:36 CEST 2019


Commit: 6864d0b6f1e31b382a69e6455de771535e272f29
Author: Brecht Van Lommel
Date:   Fri May 17 10:43:01 2019 +0200
Branches: master
https://developer.blender.org/rB6864d0b6f1e31b382a69e6455de771535e272f29

API Docs: fix mistake in example code

===================================================================

M	doc/python_api/examples/bpy.types.Depsgraph.6.py

===================================================================

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'}



More information about the Bf-blender-cvs mailing list