diff options
Diffstat (limited to 'io_import_scene_mhx.py')
-rw-r--r-- | io_import_scene_mhx.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py index 765ba0d9..bc637c9e 100644 --- a/io_import_scene_mhx.py +++ b/io_import_scene_mhx.py @@ -769,9 +769,10 @@ def parseMTex(mat, args, tokens): texco = args[2] mapto = args[3] - mat.add_texture(texture = loadedData['Texture'][texname], texture_coordinates = texco, map_to = mapto) - mtex = mat.texture_slots[index] - #mat.use_textures[index] = Bool(use) + mtex = mat.texture_slots.add() + mtex.texture = loadedData['Texture'][texname] + mtex.texture_coords = texco + mtex.use_map_color_diffuse = True # XXX, fixme, mapto not used for (key, val, sub) in tokens: defaultKey(key, val, sub, "mtex", [], globals(), locals()) |