[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1264] trunk/py/scripts/addons/ io_import_gimp_image_to_scene.py: GIMP Image to Scene: Assigning the images to UV faces so they are shown out of GLSL too

Daniel Salazar zanqdo at gmail.com
Fri Dec 10 17:06:35 CET 2010


Revision: 1264
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=1264
Author:   zanqdo
Date:     2010-12-10 17:06:35 +0100 (Fri, 10 Dec 2010)

Log Message:
-----------
GIMP Image to Scene: Assigning the images to UV faces so they are shown out of GLSL too

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	2010-12-09 18:44:37 UTC (rev 1263)
+++ trunk/py/scripts/addons/io_import_gimp_image_to_scene.py	2010-12-10 16:06:35 UTC (rev 1264)
@@ -343,6 +343,10 @@
 			if PremulAlpha: Img.use_premultiply = True
 			Img.filepath = '%s%s%s' % (PathSaveRaw, Name, ExtSave)
 			
+			UVFace = Active.data.uv_textures[0].data[0]
+			UVFace.image = Img
+			UVFace.use_image = True
+			
 			Tex.image = Img
 			
 			Mat.texture_slots.add()
@@ -362,6 +366,10 @@
 			Img.source = 'FILE'
 			Img.filepath = '%s%s%s' % (PathSaveRaw, Name, ExtSave)
 			
+			UVFace = Active.data.uv_textures[0].data[0]
+			UVFace.image = Img
+			UVFace.use_image = True
+			
 			Tex.image = Img
 			
 			Mat.texture_slots.add()




More information about the Bf-extensions-cvs mailing list