diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-23 15:06:26 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-23 15:06:26 +0400 |
commit | c659e68695bd91edb3840dda33881dec0012ee53 (patch) | |
tree | b029df6d471abdc995e9ec2d7870d2f3a14236c1 /io_import_images_as_planes.py | |
parent | 1cc532990fa39bd33d7b1c8c4a2ff3f72617f51e (diff) |
update for changes in rna
Diffstat (limited to 'io_import_images_as_planes.py')
-rw-r--r-- | io_import_images_as_planes.py | 2 |
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 |