Fix T61012: update Export UV addon after recent API change

`Material.diffuse_color` has an alpha component now.
This commit is contained in:
Jacques Lucke 2019-01-30 12:26:19 +01:00
parent 157019dd05
commit 04dc7f2acb
Notes: blender-bot 2023-02-14 19:21:02 +01:00
Referenced by issue #61012, export to uv addon not working
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ class ExportUVLayout(bpy.types.Operator):
if polygon.material_index < len(mesh.materials):
material = mesh.materials[polygon.material_index]
if material is not None:
return tuple(material.diffuse_color)
return tuple(material.diffuse_color)[:3]
return default
def get_exporter(self):