Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <mail@jlucke.com>2019-01-30 14:26:19 +0300
committerJacques Lucke <mail@jlucke.com>2019-01-30 14:26:56 +0300
commit04dc7f2acbe3d7b6dc5c85ce259aba17bd747448 (patch)
tree8760a476a0448d143e9963c768383170e24d73fc /io_mesh_uv_layout
parent157019dd05532720ac3f1084a721057fd9c3d712 (diff)
Fix T61012: update Export UV addon after recent API change
`Material.diffuse_color` has an alpha component now.
Diffstat (limited to 'io_mesh_uv_layout')
-rw-r--r--io_mesh_uv_layout/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_mesh_uv_layout/__init__.py b/io_mesh_uv_layout/__init__.py
index ad20a7a1..85d55b28 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):