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:
authorJulien Duroure <julien.duroure@gmail.com>2018-12-15 08:30:27 +0300
committerJulien Duroure <julien.duroure@gmail.com>2018-12-15 08:30:27 +0300
commit6d933c0e3ac8048e8a04f2b42bcd21a667818c2e (patch)
tree95799aa9467fc4bdfa69e7a5192411fd312e7e8a /io_scene_gltf2/blender/imp/gltf2_blender_gltf.py
parentb55002b7c33154d2b66166aaf0c2a0b287ec9e42 (diff)
glTF importer: fix material import / vertex color
Fixed a bug when a same material sometimes uses vertex color, sometimes doesn't
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_gltf.py')
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_gltf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py b/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py
index 9afc12de..1f708b40 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py
@@ -84,7 +84,7 @@ class BlenderGlTF():
# Blender material
if gltf.data.materials:
for material in gltf.data.materials:
- material.blender_material = None
+ material.blender_material = {}
if material.pbr_metallic_roughness:
# Init