From 0650f599aa174ea79c75bd4825696c1a9f56aeb2 Mon Sep 17 00:00:00 2001
From: Julien Duroure <julien.duroure@gmail.com>
Date: Mon, 4 May 2020 17:03:35 +0200
Subject: [PATCH] glTF importer: better material names when using color vertex

---
 io_scene_gltf2/__init__.py                           | 2 +-
 io_scene_gltf2/blender/imp/gltf2_blender_material.py | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 666883f4a..1fa5b3756 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 1071f7f19..bb3cea095 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
-- 
GitLab