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:
authorCampbell Barton <ideasman42@gmail.com>2011-03-18 07:09:34 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-18 07:09:34 +0300
commit6fb871e106031b0fcc240e5147ae5c42752eed3b (patch)
tree161b8760e6003dd7e24ab697c03e1b35dda9e1c1
parent6cbbe90e7ec4a2cd18214d37916a87e167e67ba7 (diff)
address [#26527] Export-import OBJ, materials "tracaeble" unchecked
Enable raytracing on OBJ materials always, not conforming to OBJ spec but this is annoying for newer software where raytracing is default.
-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())