From f97c1ff0b49c802d52c43b083ad6a388df53767c Mon Sep 17 00:00:00 2001
From: Daniel Salazar <zanqdo@gmail.com>
Date: Tue, 11 Jan 2011 03:33:06 +0000
Subject: [PATCH] New required param in images.new() broke GIMP importer

---
 io_import_gimp_image_to_scene.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/io_import_gimp_image_to_scene.py b/io_import_gimp_image_to_scene.py
index 45a3b4fce..b44b9d4b8 100644
--- a/io_import_gimp_image_to_scene.py
+++ b/io_import_gimp_image_to_scene.py
@@ -338,7 +338,7 @@ def main(File, Path, LayerViewers, MixerViewers, LayerOffset,\
             Tex.extension = 'CLIP'
             Tex.use_preview_alpha = True
             
-            Img = bpy.data.images.new(NameShort)
+            Img = bpy.data.images.new(NameShort, 128, 128)
             Img.source = 'FILE'
             if PremulAlpha: Img.use_premultiply = True
             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.extension = 'CLIP'
             
-            Img = bpy.data.images.new(NameShort)
+            Img = bpy.data.images.new(NameShort, 128, 128)
             Img.source = 'FILE'
             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_alpha = False
                 
-                Img = bpy.data.images.new(NameShort+'_A')
+                Img = bpy.data.images.new(NameShort+'_A', 128, 128)
                 Img.source = 'FILE'
                 if PremulAlpha: Img.use_premultiply = True
                 Img.filepath = '%s%s_A%s' % (PathSaveRaw, Name, ExtSave)
-- 
GitLab