[Bf-extensions-cvs] [0650f599] blender-v2.83-release: glTF importer: better material names when using color vertex

Julien Duroure noreply at git.blender.org
Mon May 4 17:04:15 CEST 2020


Commit: 0650f599aa174ea79c75bd4825696c1a9f56aeb2
Author: Julien Duroure
Date:   Mon May 4 17:03:35 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rBA0650f599aa174ea79c75bd4825696c1a9f56aeb2

glTF importer: better material names when using color vertex

===================================================================

M	io_scene_gltf2/__init__.py
M	io_scene_gltf2/blender/imp/gltf2_blender_material.py

===================================================================

diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 666883f4..1fa5b375 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -15,7 +15,7 @@
 bl_info = {
     'name': 'glTF 2.0 format',
     'author': 'Julien Duroure, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
-    "version": (1, 2, 70),
+    "version": (1, 2, 71),
     'blender': (2, 83, 9),
     'location': 'File > Import-Export',
     'description': 'Import-Export as glTF 2.0',
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_material.py b/io_scene_gltf2/blender/imp/gltf2_blender_material.py
index 1071f7f1..bb3cea09 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_material.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_material.py
@@ -33,8 +33,6 @@ class BlenderMaterial():
         name = pymaterial.name
         if name is None:
             name = "Material_" + str(material_idx)
-        if vertex_color is not None:
-            name += "_" + vertex_color
 
         mat = bpy.data.materials.new(name)
         pymaterial.blender_material[vertex_color] = mat.name



More information about the Bf-extensions-cvs mailing list