[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2390] trunk/py/scripts/addons/ io_import_images_as_planes.py: fix for io_import_images_as_planes add-on not working after texface patch (reported by Nathan Letwory over IRC)

Dalai Felinto dfelinto at gmail.com
Tue Oct 4 21:30:08 CEST 2011


Revision: 2390
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2390
Author:   dfelinto
Date:     2011-10-04 19:30:08 +0000 (Tue, 04 Oct 2011)
Log Message:
-----------
fix for io_import_images_as_planes add-on not working after texface patch (reported by Nathan Letwory over IRC)

Modified Paths:
--------------
    trunk/py/scripts/addons/io_import_images_as_planes.py

Modified: trunk/py/scripts/addons/io_import_images_as_planes.py
===================================================================
--- trunk/py/scripts/addons/io_import_images_as_planes.py	2011-10-04 10:44:26 UTC (rev 2389)
+++ trunk/py/scripts/addons/io_import_images_as_planes.py	2011-10-04 19:30:08 UTC (rev 2390)
@@ -145,9 +145,9 @@
     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):



More information about the Bf-extensions-cvs mailing list