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/import_obj.py')
-rw-r--r--io_scene_obj/import_obj.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py
index a8e08872..a065f7e1 100644
--- a/io_scene_obj/import_obj.py
+++ b/io_scene_obj/import_obj.py
@@ -219,6 +219,9 @@ def create_materials(filepath, relpath,
if do_reflection:
if "metallic" not in context_material_vars:
context_mat_wrap.metallic = 1.0
+ else:
+ # since we are (ab)using ambient term for metallic (which can be non-zero)
+ context_mat_wrap.metallic = 0.0
if do_transparency:
if "ior" not in context_material_vars: