Skip to content
Snippets Groups Projects
Commit 0650f599 authored by Julien Duroure's avatar Julien Duroure
Browse files

glTF importer: better material names when using color vertex

parent 68d58317
Branches
Tags
No related merge requests found
......@@ -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',
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment