Skip to content

Commit

Permalink
Fix for api changes in alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyvfx committed Feb 1, 2013
1 parent 62c114e commit de7ff80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io_import_gimp_image_to_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,12 +387,12 @@ def Make3DLayer (Name, NameShort, Z, Coords, RenderLayer, LayerMode, LayerOpacit
Tex = bpy.data.textures.new(NameShort+'_A', 'IMAGE')
Tex.extension = 'CLIP'
Tex.use_preview_alpha = True
Tex.use_alpha = False

Img = bpy.data.images.new(NameShort+'_A', 128, 128)
Img.source = 'FILE'
Img.alpha_mode = AlphaMode
Img.filepath = '%s%s_A%s' % (PathSaveRaw, Name, ExtSave)
Img.use_alpha = False

Tex.image = Img

Expand Down

0 comments on commit de7ff80

Please sign in to comment.