diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-25 05:22:50 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-25 05:22:50 +0400 |
commit | a695741a4858b429f17db6e9cce6a171c32d769d (patch) | |
tree | 0b156ec707bda32e7c097a832dbf04353517fa05 /io_import_images_as_planes.py | |
parent | 980d7fe327a1ae874939b9ca04b3697396f49299 (diff) |
updates to blender rna api
Diffstat (limited to 'io_import_images_as_planes.py')
-rw-r--r-- | io_import_images_as_planes.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py index 87f0c6c6..ea652842 100644 --- a/io_import_images_as_planes.py +++ b/io_import_images_as_planes.py @@ -250,9 +250,7 @@ def getTexture(path, img): # ... otherwise create a new one and apply mapping. if not tex: name = path.rpartition('\\')[2].rpartition('.')[0] - tex = bpy.data.textures.new(name=name) - tex.type = 'IMAGE' - tex = tex.recast_type() + tex = bpy.data.textures.new(name=name, type='IMAGE') tex.image = img return tex |