Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Salazar <zanqdo@gmail.com>2011-01-11 06:33:06 +0300
committerDaniel Salazar <zanqdo@gmail.com>2011-01-11 06:33:06 +0300
commitf97c1ff0b49c802d52c43b083ad6a388df53767c (patch)
tree742e171d2e0b9adbe68d69db955d5979db26f3ac /io_import_gimp_image_to_scene.py
parent8e7075e4749691f6d290ebb68f2a56918ad341d7 (diff)
New required param in images.new() broke GIMP importer
Diffstat (limited to 'io_import_gimp_image_to_scene.py')
-rw-r--r--io_import_gimp_image_to_scene.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/io_import_gimp_image_to_scene.py b/io_import_gimp_image_to_scene.py
index 45a3b4fc..b44b9d4b 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)