[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1385] trunk/py/scripts/addons/ io_import_gimp_image_to_scene.py: New required param in images.new() broke GIMP importer
Daniel Salazar
zanqdo at gmail.com
Tue Jan 11 04:33:06 CET 2011
Revision: 1385
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=1385
Author: zanqdo
Date: 2011-01-11 03:33:06 +0000 (Tue, 11 Jan 2011)
Log Message:
-----------
New required param in images.new() broke GIMP importer
Modified Paths:
--------------
trunk/py/scripts/addons/io_import_gimp_image_to_scene.py
Modified: trunk/py/scripts/addons/io_import_gimp_image_to_scene.py
===================================================================
--- trunk/py/scripts/addons/io_import_gimp_image_to_scene.py 2011-01-10 20:27:11 UTC (rev 1384)
+++ trunk/py/scripts/addons/io_import_gimp_image_to_scene.py 2011-01-11 03:33:06 UTC (rev 1385)
@@ -338,7 +338,7 @@
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 @@
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 @@
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)
More information about the Bf-extensions-cvs
mailing list