Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-09-03 19:05:18 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-09-03 19:05:18 +0400
commit4faf39673a6ecbfcee13ff73ff41434b35285a76 (patch)
tree9041b3cae43c74725d01605f5ab5b5185d7942ce /io_import_scene_mhx.py
parent3c4c1ed512c84ab06ec74fba5151b36062d639ec (diff)
update for changes in rna io_import_scene_mhx.py mapto isnt working as it should since this can now only be accessed as many bools
Diffstat (limited to 'io_import_scene_mhx.py')
-rw-r--r--io_import_scene_mhx.py7
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())