4
4
mirror of https://github.com/H-uru/korman.git synced 2025-07-15 10:54:18 +00:00

Actually use UV maps as specified

This commit is contained in:
2015-07-18 22:30:23 -04:00
parent 36c5d71032
commit 209c65a95b

View File

@ -155,7 +155,7 @@ class MaterialConverter:
self._propagate_material_settings(bm, layer) self._propagate_material_settings(bm, layer)
# UVW Channel # 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: if uvchan.name == slot.uv_layer:
layer.UVWSrc = i layer.UVWSrc = i
print(" Using UV Map #{} '{}'".format(i, name)) print(" Using UV Map #{} '{}'".format(i, name))