diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2009-06-27 01:51:23 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2009-06-27 01:51:23 +0400 |
commit | d7d60f4ab9c184a82be0064b12964ce072c57000 (patch) | |
tree | 466d669972984b0649a3ca558cc15bc3fe7fcda0 /release | |
parent | b1a5b08b1ae9c657312d0393e7b069c25e0e4283 (diff) |
fix for importing of transparent faces from .mtl files - ZTrans now is set for them as well.
(what makes importing from SketchUp really nice)
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/import_obj.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/import_obj.py b/release/scripts/import_obj.py index 679e24bb0a7..a8c655ada48 100644 --- a/release/scripts/import_obj.py +++ b/release/scripts/import_obj.py @@ -9,7 +9,7 @@ Tooltip: 'Load a Wavefront OBJ File, Shift: batch import all dir.' __author__= "Campbell Barton", "Jiri Hnidek", "Paolo Ciccone" __url__= ['http://wiki.blender.org/index.php/Scripts/Manual/Import/wavefront_obj', 'blender.org', 'blenderartists.org'] -__version__= "2.12" +__version__= "2.13" __bpydoc__= """\ This script imports a Wavefront OBJ files to Blender. @@ -208,6 +208,7 @@ def create_materials(filepath, material_libs, unique_materials, unique_material_ context_material.setIOR( max(1, min(float(line_split[1]), 3))) # Between 1 and 3 elif line_lower.startswith('d') or line_lower.startswith('tr'): context_material.setAlpha(float(line_split[1])) + context_material.mode |= Material.Modes.ZTRANSP elif line_lower.startswith('map_ka'): img_filepath= line_value(line.split()) if img_filepath: |