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-23 15:06:26 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-23 15:06:26 +0400
commitc659e68695bd91edb3840dda33881dec0012ee53 (patch)
treeb029df6d471abdc995e9ec2d7870d2f3a14236c1 /io_import_images_as_planes.py
parent1cc532990fa39bd33d7b1c8c4a2ff3f72617f51e (diff)
update for changes in rna
Diffstat (limited to 'io_import_images_as_planes.py')
-rw-r--r--io_import_images_as_planes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py
index 36e13d97..87f0c6c6 100644
--- a/io_import_images_as_planes.py
+++ b/io_import_images_as_planes.py
@@ -136,7 +136,7 @@ def createPlaneObj(img, dimension):
me.update()
plane = bpy.data.objects.new(img.name, me)
- plane.data.add_uv_texture()
+ plane.data.uv_textures.new()
scene.objects.link(plane)
plane.location = scene.cursor_location