[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4189] trunk/py/scripts/addons/ io_scene_obj/import_obj.py: fix for api change with importer
Campbell Barton
ideasman42 at gmail.com
Tue Jan 22 11:44:29 CET 2013
Revision: 4189
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4189
Author: campbellbarton
Date: 2013-01-22 10:44:26 +0000 (Tue, 22 Jan 2013)
Log Message:
-----------
fix for api change with importer
Modified Paths:
--------------
trunk/py/scripts/addons/io_scene_obj/import_obj.py
Modified: trunk/py/scripts/addons/io_scene_obj/import_obj.py
===================================================================
--- trunk/py/scripts/addons/io_scene_obj/import_obj.py 2013-01-22 06:17:18 UTC (rev 4188)
+++ trunk/py/scripts/addons/io_scene_obj/import_obj.py 2013-01-22 10:44:26 UTC (rev 4189)
@@ -88,7 +88,7 @@
has_data = False
image_depth = 0
- if image:
+ if image is not None:
texture.image = image
# note, this causes the image to load, see: [#32637]
# which makes the following has_data work as expected.
@@ -108,7 +108,8 @@
texture.use_mipmap = True
texture.use_interpolation = True
- texture.use_alpha = True
+ if image is not None:
+ image.use_alpha = True
blender_material.use_transparency = True
if "alpha" not in context_material_vars:
blender_material.alpha = 0.0
More information about the Bf-extensions-cvs
mailing list