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:
authorBastien Montagne <montagne29@wanadoo.fr>2013-11-02 14:52:48 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2013-11-02 14:52:48 +0400
commitcb3f170d06a01ec077cadacfee02f417eee28396 (patch)
tree52420481a78cb3993cb0085ccec7e881a7c9f36c /io_import_images_as_planes.py
parentfc3ce74de68c0b4d29a09b67e2bd6d6fff5826c9 (diff)
Name added planes from the image name (like already done for textures and materials).
Diffstat (limited to 'io_import_images_as_planes.py')
-rw-r--r--io_import_images_as_planes.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py
index 269de1bf..860ae00e 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)