Browse Source

Fix idiot error

pull/8/head
Adam Johnson 10 years ago
parent
commit
d24ce8c14d
  1. 4
      korman/exporter/material.py

4
korman/exporter/material.py

@ -405,10 +405,10 @@ class MaterialConverter:
key = _Texture(image=image) key = _Texture(image=image)
if key not in self._pending: if key not in self._pending:
print(" Stashing '{}' for conversion as '{}'".format(image.name, str(key))) print(" Stashing '{}' for conversion as '{}'".format(image.name, str(key)))
self._pending[key] = [layer,] self._pending[key] = [layer.key,]
else: else:
print(" Found another user of '{}'".format(image.name)) print(" Found another user of '{}'".format(image.name))
self._pending[key].append(layer) self._pending[key].append(layer.key)
def finalize(self): def finalize(self):
for key, layers in self._pending.items(): for key, layers in self._pending.items():

Loading…
Cancel
Save