Fix T61012: update Export UV addon after recent API change
`Material.diffuse_color` has an alpha component now.
This commit is contained in:
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
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue