From 170976b246b4e871f14a7840ffa068766d611a43 Mon Sep 17 00:00:00 2001 From: Daniel Salazar Date: Fri, 10 Dec 2010 16:06:35 +0000 Subject: GIMP Image to Scene: Assigning the images to UV faces so they are shown out of GLSL too --- io_import_gimp_image_to_scene.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'io_import_gimp_image_to_scene.py') diff --git a/io_import_gimp_image_to_scene.py b/io_import_gimp_image_to_scene.py index ee6d779f..bdd4552e 100644 --- a/io_import_gimp_image_to_scene.py +++ b/io_import_gimp_image_to_scene.py @@ -343,6 +343,10 @@ def main(File, Path, LayerViewers, MixerViewers, LayerOffset,\ 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 @@ def main(File, Path, LayerViewers, MixerViewers, LayerOffset,\ 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() -- cgit v1.2.3