From 4faf39673a6ecbfcee13ff73ff41434b35285a76 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 3 Sep 2010 15:05:18 +0000 Subject: 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 --- space_view3d_materials_utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'space_view3d_materials_utils.py') 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! -- cgit v1.2.3