Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'io_scene_obj')
-rw-r--r--io_scene_obj/import_obj.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py
index 12465453..5d385e0a 100644
--- a/io_scene_obj/import_obj.py
+++ b/io_scene_obj/import_obj.py
@@ -501,10 +501,15 @@ def create_materials(filepath, material_libs, unique_materials, unique_material_
if do_fresnel:
context_material.raytrace_mirror.raytrace_mirror.fresnel = 1.0 # could be any value for 'ON'
+ """
if do_raytrace:
context_material.use_raytrace = True
else:
context_material.use_raytrace = False
+ """
+ # XXX, this is not following the OBJ spec, but this was
+ # written when raytracing wasnt default, annoying to disable for blender users.
+ context_material.use_raytrace = True
elif line_lower.startswith(b'map_ka'):
img_filepath = line_value(line.split())