diff options
Diffstat (limited to 'doc/python_api/examples/bpy.data.py')
-rw-r--r-- | doc/python_api/examples/bpy.data.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/python_api/examples/bpy.data.py b/doc/python_api/examples/bpy.data.py index 555b421ddac..7d6bf94532b 100644 --- a/doc/python_api/examples/bpy.data.py +++ b/doc/python_api/examples/bpy.data.py @@ -14,7 +14,7 @@ print(bpy.data.scenes.keys()) if "Cube" in bpy.data.meshes: mesh = bpy.data.meshes["Cube"] print("removing mesh", mesh) - bpy.data.meshes.unlink(mesh) + bpy.data.meshes.remove(mesh) # write images into a file next to the blend @@ -22,6 +22,6 @@ import os file = open(os.path.splitext(bpy.data.filepath)[0] + ".txt", 'w') for image in bpy.data.images: - file.write("%s %dx%d\n" % (image.filepath, image.size[0], image.size[1])) + file.write("%s %d x %d\n" % (image.filepath, image.size[0], image.size[1])) file.close() |