diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-06-19 23:58:03 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-06-19 23:58:03 +0300 |
commit | 48b38ec3065627117318c26a1949135360213d12 (patch) | |
tree | f8d0b65ef0ae2b8fb8b0711c84288575319311b3 /io_scene_gltf2/blender | |
parent | b154bd63c0fd87bbb4679c2635f3fc5701f86ae0 (diff) |
glTF importer: fix alpha for unlit material
Diffstat (limited to 'io_scene_gltf2/blender')
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_material.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_material.py b/io_scene_gltf2/blender/imp/gltf2_blender_material.py index cdfc34c1..55be1626 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_material.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_material.py @@ -98,8 +98,8 @@ class BlenderMaterial(): if pymaterial.occlusion_texture is not None: BlenderOcclusionMap.create(gltf, material_idx, vertex_color) - if pymaterial.alpha_mode is not None and pymaterial.alpha_mode != 'OPAQUE': - BlenderMaterial.blender_alpha(gltf, material_idx, vertex_color, pymaterial.alpha_mode) + if pymaterial.alpha_mode is not None and pymaterial.alpha_mode != 'OPAQUE': + BlenderMaterial.blender_alpha(gltf, material_idx, vertex_color, pymaterial.alpha_mode) @staticmethod def set_uvmap(gltf, material_idx, prim, obj, vertex_color): |