[Bf-extensions-cvs] [04dc7f2a] master: Fix T61012: update Export UV addon after recent API change
Jacques Lucke
noreply at git.blender.org
Wed Jan 30 12:27:11 CET 2019
Commit: 04dc7f2acbe3d7b6dc5c85ce259aba17bd747448
Author: Jacques Lucke
Date: Wed Jan 30 12:26:19 2019 +0100
Branches: master
https://developer.blender.org/rBA04dc7f2acbe3d7b6dc5c85ce259aba17bd747448
Fix T61012: update Export UV addon after recent API change
`Material.diffuse_color` has an alpha component now.
===================================================================
M io_mesh_uv_layout/__init__.py
===================================================================
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):
More information about the Bf-extensions-cvs
mailing list