Actually return the skin in null_skin()

Oops.
This commit is contained in:
Bill Currie 2012-08-07 09:50:38 +09:00
parent ff4c2cfb63
commit 5661e738ac

View file

@ -81,6 +81,7 @@ def null_skin(size):
skin = MDL.Skin() skin = MDL.Skin()
skin.type = 0 skin.type = 0
skin.pixels = bytearray(size[0] * size[1]) # black skin skin.pixels = bytearray(size[0] * size[1]) # black skin
return skin
def make_skin(mdl, mesh): def make_skin(mdl, mesh):
if (not mesh.uv_textures or not mesh.uv_textures[0].data if (not mesh.uv_textures or not mesh.uv_textures[0].data