fix for various python bugs and remove unused var.

This commit is contained in:
2011-07-10 17:26:15 +00:00
parent de7592b489
commit 301e5b4ea0
13 changed files with 13 additions and 26 deletions

View File

@@ -99,7 +99,7 @@ def load_image(imagepath,
return _image_load(nfilepath)
if place_holder:
image = bpy.data.images.new(os.path.basename(filepath), 128, 128)
image = bpy.data.images.new(os.path.basename(imagepath), 128, 128)
# allow the path to be resolved later
image.filepath = imagepath
return image