diff options
Diffstat (limited to 'io_import_images_as_planes.py')
-rw-r--r-- | io_import_images_as_planes.py | 4 |
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 |