diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-03 19:05:18 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-03 19:05:18 +0400 |
commit | 4faf39673a6ecbfcee13ff73ff41434b35285a76 (patch) | |
tree | 9041b3cae43c74725d01605f5ab5b5185d7942ce /space_view3d_materials_utils.py | |
parent | 3c4c1ed512c84ab06ec74fba5151b36062d639ec (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 'space_view3d_materials_utils.py')
-rw-r--r-- | space_view3d_materials_utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/space_view3d_materials_utils.py b/space_view3d_materials_utils.py index c013e4c6..8417c4c5 100644 --- a/space_view3d_materials_utils.py +++ b/space_view3d_materials_utils.py @@ -416,7 +416,10 @@ def check_texture(img,mat): found = True break if not found and mat: - mat.add_texture(tex, texture_coordinates='UV', map_to='COLOR') + mtex = mat.texture_slots.add() + mtex.texture = tex + mtex.texture_coords = 'UV' + mtex.use_map_color_diffuse = True def texface_to_mat(): # editmode check here! |