[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26051] trunk/blender/release/scripts/io/ import_scene_obj.py: bugfix [#20712] wavefront obj import fails with default import settings
Campbell Barton
ideasman42 at gmail.com
Sun Jan 17 18:36:11 CET 2010
Revision: 26051
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26051
Author: campbellbarton
Date: 2010-01-17 18:36:11 +0100 (Sun, 17 Jan 2010)
Log Message:
-----------
bugfix [#20712] wavefront obj import fails with default import settings
Modified Paths:
--------------
trunk/blender/release/scripts/io/import_scene_obj.py
Modified: trunk/blender/release/scripts/io/import_scene_obj.py
===================================================================
--- trunk/blender/release/scripts/io/import_scene_obj.py 2010-01-17 16:00:54 UTC (rev 26050)
+++ trunk/blender/release/scripts/io/import_scene_obj.py 2010-01-17 17:36:11 UTC (rev 26051)
@@ -481,7 +481,7 @@
context_material.specular_hardness = int((float(line_split[1])*0.51))
# context_material.setHardness( int((float(line_split[1])*0.51)) )
elif line_lower.startswith('ni'): # Refraction index
- context_material.ior = max(1, min(float(line_split[1]), 3))
+ context_material.raytrace_transparency.ior = max(1, min(float(line_split[1]), 3))
# 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.alpha = float(line_split[1])
More information about the Bf-blender-cvs
mailing list