rna/py api

rename image.save() --> image.save_render() because it uses render settings for saving.
added image.save() which is like pressing save in the image view, saving to the images path and removing the dirty flag.
This commit is contained in:
Campbell Barton
2010-02-26 12:28:44 +00:00
parent d616286ffb
commit bbf6dde277
4 changed files with 40 additions and 11 deletions

View File

@@ -38,7 +38,7 @@ class SaveDirty(bpy.types.Operator):
self.report({'WARNING'}, "Path used by more then one image: " + path)
else:
unique_paths.add(path)
image.save(path=path)
image.save()
return {'FINISHED'}