[Bf-extensions-cvs] [82dad88a] master: glTF importer: import doublesided material as use_backface_culling new attribute in blender materials
Julien Duroure
noreply at git.blender.org
Tue May 28 22:51:39 CEST 2019
Commit: 82dad88a90207c755a737be64b7e70c5814fd7b9
Author: Julien Duroure
Date: Tue May 28 18:05:45 2019 +0200
Branches: master
https://developer.blender.org/rBA82dad88a90207c755a737be64b7e70c5814fd7b9
glTF importer: import doublesided material as use_backface_culling new attribute in blender materials
===================================================================
M io_scene_gltf2/blender/imp/gltf2_blender_material.py
===================================================================
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_material.py b/io_scene_gltf2/blender/imp/gltf2_blender_material.py
index 8eecbebe..390b84f4 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_material.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_material.py
@@ -49,6 +49,8 @@ class BlenderMaterial():
mat = bpy.data.materials.new(name)
pymaterial.blender_material[vertex_color] = mat.name
+ mat.use_backface_culling = (pymaterial.double_sided != True)
+
ignore_map = False
if pymaterial.extensions is not None :
More information about the Bf-extensions-cvs
mailing list