New required param in images.new() broke GIMP importer

This commit is contained in:
Daniel Salazar
2011-01-11 03:33:06 +00:00
parent 8e7075e474
commit f97c1ff0b4

View File

@ -338,7 +338,7 @@ def main(File, Path, LayerViewers, MixerViewers, LayerOffset,\
Tex.extension = 'CLIP' Tex.extension = 'CLIP'
Tex.use_preview_alpha = True Tex.use_preview_alpha = True
Img = bpy.data.images.new(NameShort) Img = bpy.data.images.new(NameShort, 128, 128)
Img.source = 'FILE' Img.source = 'FILE'
if PremulAlpha: Img.use_premultiply = True if PremulAlpha: Img.use_premultiply = True
Img.filepath = '%s%s%s' % (PathSaveRaw, Name, ExtSave) Img.filepath = '%s%s%s' % (PathSaveRaw, Name, ExtSave)
@ -362,7 +362,7 @@ def main(File, Path, LayerViewers, MixerViewers, LayerOffset,\
Tex = bpy.data.textures.new(NameShort, 'IMAGE') Tex = bpy.data.textures.new(NameShort, 'IMAGE')
Tex.extension = 'CLIP' Tex.extension = 'CLIP'
Img = bpy.data.images.new(NameShort) Img = bpy.data.images.new(NameShort, 128, 128)
Img.source = 'FILE' Img.source = 'FILE'
Img.filepath = '%s%s%s' % (PathSaveRaw, Name, ExtSave) Img.filepath = '%s%s%s' % (PathSaveRaw, Name, ExtSave)
@ -384,7 +384,7 @@ def main(File, Path, LayerViewers, MixerViewers, LayerOffset,\
Tex.use_preview_alpha = True Tex.use_preview_alpha = True
Tex.use_alpha = False Tex.use_alpha = False
Img = bpy.data.images.new(NameShort+'_A') Img = bpy.data.images.new(NameShort+'_A', 128, 128)
Img.source = 'FILE' Img.source = 'FILE'
if PremulAlpha: Img.use_premultiply = True if PremulAlpha: Img.use_premultiply = True
Img.filepath = '%s%s_A%s' % (PathSaveRaw, Name, ExtSave) Img.filepath = '%s%s_A%s' % (PathSaveRaw, Name, ExtSave)