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-08-19 16:49:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-19 16:49:53 +0400
commit322f2bf8d49c58cd9eb5a214ee1542721839c6e0 (patch)
tree38495ca8e7ccc458625a960e13961bb051a4b3a2 /io_import_images_as_planes.py
parent2a7343b8314ab4bbb6ec1e9a3fc26d7fe16a259b (diff)
update for changes in rna api
Diffstat (limited to 'io_import_images_as_planes.py')
-rw-r--r--io_import_images_as_planes.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py
index 81618c9b..53a7e9ed 100644
--- a/io_import_images_as_planes.py
+++ b/io_import_images_as_planes.py
@@ -330,9 +330,9 @@ def main(filePath, options, mapping, dimension):
# Put Image into UVTextureLayer
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].transp = 'ALPHA'
- plane.data.uv_textures[0].data[0].twoside = True
+ plane.data.uv_textures[0].data[0].use_texture = True
+ plane.data.uv_textures[0].data[0].blend_mode = 'ALPHA'
+ plane.data.uv_textures[0].data[0].use_twoside = True
plane.select = True
scene.objects.active = plane
@@ -359,9 +359,9 @@ def main(filePath, options, mapping, dimension):
# Put image into UVTextureLayer
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].transp = 'ALPHA'
- plane.data.uv_textures[0].data[0].twoside = True
+ plane.data.uv_textures[0].data[0].use_texture = True
+ plane.data.uv_textures[0].data[0].blend_mode = 'ALPHA'
+ plane.data.uv_textures[0].data[0].use_twoside = True
plane.select = True
scene.objects.active = plane