Skip to content
Snippets Groups Projects
Commit cadd9160 authored by Dalai Felinto's avatar Dalai Felinto
Browse files

fix for io_import_images_as_planes add-on not working after texface patch...

fix for io_import_images_as_planes add-on not working after texface patch (reported by Nathan Letwory over IRC)
parent 14e1bd55
No related branches found
No related tags found
No related merge requests found
......@@ -145,9 +145,9 @@ def create_image_plane(self, context, material):
plane.data.uv_textures.new()
plane.data.materials.append(material)
plane.data.uv_textures[0].data[0].image = img
plane.data.uv_textures[0].data[0].use_image = True
plane.data.uv_textures[0].data[0].blend_type = 'ALPHA'
plane.data.uv_textures[0].data[0].use_twoside = True
material.game_settings.use_backface_culling = False
material.game_settings.alpha_blend = 'ALPHA'
return plane
def generate_paths(self):
......
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