Skip to content
Snippets Groups Projects
Commit 04dc7f2a authored by Jacques Lucke's avatar Jacques Lucke
Browse files

Fix T61012: update Export UV addon after recent API change

`Material.diffuse_color` has an alpha component now.
parent 157019dd
No related branches found
No related tags found
No related merge requests found
...@@ -212,7 +212,7 @@ class ExportUVLayout(bpy.types.Operator): ...@@ -212,7 +212,7 @@ class ExportUVLayout(bpy.types.Operator):
if polygon.material_index < len(mesh.materials): if polygon.material_index < len(mesh.materials):
material = mesh.materials[polygon.material_index] material = mesh.materials[polygon.material_index]
if material is not None: if material is not None:
return tuple(material.diffuse_color) return tuple(material.diffuse_color)[:3]
return default return default
def get_exporter(self): def get_exporter(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment