From cadd91608e298b67e2fea8a97e2a511220c2c810 Mon Sep 17 00:00:00 2001
From: Dalai Felinto <dfelinto@gmail.com>
Date: Tue, 4 Oct 2011 19:30:08 +0000
Subject: [PATCH] fix for io_import_images_as_planes add-on not working after
 texface patch (reported by Nathan Letwory over IRC)

---
 io_import_images_as_planes.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py
index a7b04cd73..ba3030f2e 100644
--- a/io_import_images_as_planes.py
+++ b/io_import_images_as_planes.py
@@ -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):
-- 
GitLab