Skip to content
Snippets Groups Projects
Commit 170976b2 authored by Daniel Salazar's avatar Daniel Salazar
Browse files

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

parent 77a9e1b8
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment