From cb3f170d06a01ec077cadacfee02f417eee28396 Mon Sep 17 00:00:00 2001
From: Bastien Montagne <montagne29@wanadoo.fr>
Date: Sat, 2 Nov 2013 10:52:48 +0000
Subject: [PATCH] Name added planes from the image name (like already done for
 textures and materials).

---
 io_import_images_as_planes.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py
index 269de1bfd..860ae00e5 100644
--- a/io_import_images_as_planes.py
+++ b/io_import_images_as_planes.py
@@ -19,8 +19,8 @@
 bl_info = {
     "name": "Import Images as Planes",
     "author": "Florian Meyer (tstscr), mont29, matali",
-    "version": (1, 9),
-    "blender": (2, 66, 4),
+    "version": (1, 9, 1),
+    "blender": (2, 69, 0),
     "location": "File > Import > Images as Planes or Add > Mesh > Images as Planes",
     "description": "Imports images and creates planes with the appropriate aspect ratio. "
                    "The images are mapped to the planes.",
@@ -52,7 +52,7 @@ from bpy_extras.image_utils import load_image
 DEFAULT_EXT = "*"
 
 EXT_FILTER = getattr(collections, "OrderedDict", dict)((
-    (DEFAULT_EXT, ((), "All image formats", "Import all know image (or movie) formats.")),
+    (DEFAULT_EXT, ((), "All image formats", "Import all known image (or movie) formats.")),
     ("jpeg", (("jpeg", "jpg", "jpe"), "JPEG ({})", "Joint Photographic Experts Group")),
     ("png", (("png", ), "PNG ({})", "Portable Network Graphics")),
     ("tga", (("tga", "tpic"), "Truevision TGA ({})", "")),
@@ -386,6 +386,7 @@ class IMPORT_OT_image_to_plane(Operator, AddObjectHelper):
         if plane.mode is not 'OBJECT':
             bpy.ops.object.mode_set(mode='OBJECT')
         plane.dimensions = x, y, 0.0
+        plane.name = material.name
         bpy.ops.object.transform_apply(scale=True)
         plane.data.uv_textures.new()
         plane.data.materials.append(material)
-- 
GitLab