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>2019-11-13 23:59:45 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-11-13 23:59:45 +0300
commit6790f39ca64ddfe9c3b00666f4b4f78004e754ab (patch)
treef1330999559537bf9b6cf1faa4181c4fd358f02f /io_scene_gltf2/blender/imp/gltf2_blender_material.py
parentd803b6c6f50ceb1cdaddac5011a257a7e75ba7e4 (diff)
glTF importer: code refactoring, texture node + mapping + UVMap
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_material.py')
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_material.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_material.py b/io_scene_gltf2/blender/imp/gltf2_blender_material.py
index c5e3b51c..8d5dd245 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_material.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_material.py
@@ -106,17 +106,6 @@ class BlenderMaterial():
BlenderMaterial.blender_alpha(gltf, material_idx, vertex_color, pymaterial.alpha_mode)
@staticmethod
- def set_uvmap(gltf, material_idx, prim, obj, vertex_color):
- """Set UV Map."""
- pymaterial = gltf.data.materials[material_idx]
-
- node_tree = bpy.data.materials[pymaterial.blender_material[vertex_color]].node_tree
- uvmap_nodes = [node for node in node_tree.nodes if node.type in ['UVMAP', 'NORMAL_MAP']]
- for uvmap_node in uvmap_nodes:
- if uvmap_node["gltf2_texcoord"] in prim.blender_texcoord.keys():
- uvmap_node.uv_map = prim.blender_texcoord[uvmap_node["gltf2_texcoord"]]
-
- @staticmethod
def blender_alpha(gltf, material_idx, vertex_color, alpha_mode):
"""Set alpha."""
pymaterial = gltf.data.materials[material_idx]