glTF exporter: Fix retrieving attribute after recent merged

This commit is contained in:
Julien Duroure
2024-05-24 10:22:40 +02:00
parent a7793a871b
commit 4aadff7e97
2 changed files with 2 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
bl_info = {
'name': 'glTF 2.0 format',
'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
"version": (4, 2, 38),
"version": (4, 2, 39),
'blender': (4, 2, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',

View File

@@ -658,8 +658,7 @@ def get_color_attrib(nav):
if nav.node.attribute_type == 'GEOMETRY':
# Does NOT use color attribute when blank
name = nav.node.attribute_name
if name:
return name
return name # Fixed name or "" for active color
return None