Skip to content
Snippets Groups Projects
Commit 322f2bf8 authored by Campbell Barton's avatar Campbell Barton
Browse files

update for changes in rna api

parent 2a7343b8
No related branches found
No related tags found
No related merge requests found
...@@ -330,9 +330,9 @@ def main(filePath, options, mapping, dimension): ...@@ -330,9 +330,9 @@ def main(filePath, options, mapping, dimension):
# Put Image into UVTextureLayer # Put Image into UVTextureLayer
plane.data.uv_textures[0].data[0].image = img plane.data.uv_textures[0].data[0].image = img
plane.data.uv_textures[0].data[0].tex = True plane.data.uv_textures[0].data[0].use_texture = True
plane.data.uv_textures[0].data[0].transp = 'ALPHA' plane.data.uv_textures[0].data[0].blend_mode = 'ALPHA'
plane.data.uv_textures[0].data[0].twoside = True plane.data.uv_textures[0].data[0].use_twoside = True
plane.select = True plane.select = True
scene.objects.active = plane scene.objects.active = plane
...@@ -359,9 +359,9 @@ def main(filePath, options, mapping, dimension): ...@@ -359,9 +359,9 @@ def main(filePath, options, mapping, dimension):
# Put image into UVTextureLayer # Put image into UVTextureLayer
plane.data.uv_textures[0].data[0].image = img plane.data.uv_textures[0].data[0].image = img
plane.data.uv_textures[0].data[0].tex = True plane.data.uv_textures[0].data[0].use_texture = True
plane.data.uv_textures[0].data[0].transp = 'ALPHA' plane.data.uv_textures[0].data[0].blend_mode = 'ALPHA'
plane.data.uv_textures[0].data[0].twoside = True plane.data.uv_textures[0].data[0].use_twoside = True
plane.select = True plane.select = True
scene.objects.active = plane scene.objects.active = plane
......
...@@ -213,11 +213,11 @@ def mat_to_texface(): ...@@ -213,11 +213,11 @@ def mat_to_texface():
#check that material had an image! #check that material had an image!
if images[f.material_index] != None: if images[f.material_index] != None:
uvtex[f.index].image = images[f.material_index] uvtex[f.index].image = images[f.material_index]
uvtex[f.index].tex =True uvtex[f.index].use_texture = True
else: else:
uvtex[f.index].tex =False uvtex[f.index].use_texture = False
me.update me.update()
if editmode: if editmode:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment