Skip to content

Commit

Permalink
GIMP Image to Scene: Assigning the images to UV faces so they are sho…
Browse files Browse the repository at this point in the history
…wn out of GLSL too
  • Loading branch information
ZanQdo committed Dec 10, 2010
1 parent 77a9e1b commit 170976b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions io_import_gimp_image_to_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,10 @@ def Make3DLayer (Name, NameShort, Z, Coords, RenderLayer, LayerMode, LayerOpacit
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()
Expand All @@ -362,6 +366,10 @@ def Make3DLayer (Name, NameShort, Z, Coords, RenderLayer, LayerMode, LayerOpacit
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()
Expand Down

0 comments on commit 170976b

Please sign in to comment.