diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-01-30 14:44:08 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-01-30 14:44:08 +0300 |
commit | 4e8ddec4e1be8e67da90fe244707fb2077837604 (patch) | |
tree | 1e116292da425f16ee9f6818ee5deda7aa84cd24 /io_scene_obj | |
parent | 04dc7f2acbe3d7b6dc5c85ce259aba17bd747448 (diff) |
Fix: Material.diffuse_color has an alpha component now
Diffstat (limited to 'io_scene_obj')
-rw-r--r-- | io_scene_obj/import_obj.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py index f58ca083..ddb2658f 100644 --- a/io_scene_obj/import_obj.py +++ b/io_scene_obj/import_obj.py @@ -205,7 +205,7 @@ def create_materials(filepath, relpath, if emit_value > 1e-6: print("WARNING, emit value unsupported by Principled BSDF shader, skipped.") # We have to adapt it to diffuse color too... - emit_value /= sum(context_material.diffuse_color) / 3.0 + emit_value /= sum(tuple(context_material.diffuse_color)[:3]) / 3.0 # ~ context_material.emit = emit_value # FIXME, how else to use this? |