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-09-03 11:26:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-09-03 11:26:27 +0400
commit3c4c1ed512c84ab06ec74fba5151b36062d639ec (patch)
treebd0599dd07048c31e015afe7b89a8de80c2e5513 /io_import_images_as_planes.py
parent722806d6731447273dc470fb1bf6e9bf280da658 (diff)
updates for changes in blender.
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 fedd89da..61c88c46 100644
--- a/io_import_images_as_planes.py
+++ b/io_import_images_as_planes.py
@@ -327,7 +327,7 @@ def main(filePath, options, mapping, dimension):
plane = createPlaneObj(img, dimension)
# Assign Material
- plane.data.materials.link(mat)
+ plane.data.materials.append(mat)
# Put Image into UVTextureLayer
plane.data.uv_textures[0].data[0].image = img
@@ -356,7 +356,7 @@ def main(filePath, options, mapping, dimension):
plane = createPlaneObj(img, dimension)
# Assign Material
- plane.data.materials.link(mat)
+ plane.data.materials.append(mat)
# Put image into UVTextureLayer
plane.data.uv_textures[0].data[0].image = img