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-27 03:31:22 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-27 03:31:22 +0400
commitd7752e1b50740a81f1196063ee3466be0f2b5150 (patch)
treef4ded7c5c3f80d5878745ae4881b59b630e8153b /io_import_images_as_planes.py
parent8d941d5a9d675a9a4ef7700f69a2b59efd6bf7b2 (diff)
update for rna api changes
Diffstat (limited to 'io_import_images_as_planes.py')
-rw-r--r--io_import_images_as_planes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py
index ea652842..e1aa672b 100644
--- a/io_import_images_as_planes.py
+++ b/io_import_images_as_planes.py
@@ -324,7 +324,7 @@ def main(filePath, options, mapping, dimension):
plane = createPlaneObj(img, dimension)
# Assign Material
- plane.data.add_material(mat)
+ plane.data.materials.link(mat)
# Put Image into UVTextureLayer
plane.data.uv_textures[0].data[0].image = img
@@ -353,7 +353,7 @@ def main(filePath, options, mapping, dimension):
plane = createPlaneObj(img, dimension)
# Assign Material
- plane.data.add_material(mat)
+ plane.data.materials.link(mat)
# Put image into UVTextureLayer
plane.data.uv_textures[0].data[0].image = img