From 209c65a95b5c460f405230aaf854d0d0b2555dd5 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 18 Jul 2015 22:30:23 -0400 Subject: [PATCH] Actually use UV maps as specified --- korman/exporter/material.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/exporter/material.py b/korman/exporter/material.py index 3b30c7a..df35d34 100644 --- a/korman/exporter/material.py +++ b/korman/exporter/material.py @@ -155,7 +155,7 @@ class MaterialConverter: self._propagate_material_settings(bm, layer) # UVW Channel - for i, uvchan in enumerate(bo.data.tessface_uv_textures): + for i, uvchan in enumerate(bo.data.uv_layers): if uvchan.name == slot.uv_layer: layer.UVWSrc = i print(" Using UV Map #{} '{}'".format(i, name))