From 04dc7f2acbe3d7b6dc5c85ce259aba17bd747448 Mon Sep 17 00:00:00 2001
From: Jacques Lucke <mail@jlucke.com>
Date: Wed, 30 Jan 2019 12:26:19 +0100
Subject: [PATCH] Fix T61012: update Export UV addon after recent API change

`Material.diffuse_color` has an alpha component now.
---
 io_mesh_uv_layout/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/io_mesh_uv_layout/__init__.py b/io_mesh_uv_layout/__init__.py
index ad20a7a14..85d55b287 100644
--- a/io_mesh_uv_layout/__init__.py
+++ b/io_mesh_uv_layout/__init__.py
@@ -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):
-- 
GitLab