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:
authorPhilipp Oeser <info@graphics-engineer.com>2012-06-18 18:41:10 +0400
committerPhilipp Oeser <info@graphics-engineer.com>2012-06-18 18:41:10 +0400
commit5dc61be8f692be397b302ea68fee3707cec9f845 (patch)
treea0899403a45e5438d88d8a9a874a9c3ee024d66b /io_scene_obj
parent19a539df76903106de2a96b0b5503d0b0734eed3 (diff)
This should fix [#31831] "obj import name" reported by dan grauer.
Now the importer assigns the object the same name as the object data. Reviewed by Campbell.
Diffstat (limited to 'io_scene_obj')
-rw-r--r--io_scene_obj/import_obj.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py
index 39d929ee..890d1203 100644
--- a/io_scene_obj/import_obj.py
+++ b/io_scene_obj/import_obj.py
@@ -675,7 +675,7 @@ def create_mesh(new_objects,
me.update(calc_edges=use_edges)
me.validate()
- ob = bpy.data.objects.new("Mesh", me)
+ ob = bpy.data.objects.new(me.name, me)
new_objects.append(ob)
# Create the vertex groups. No need to have the flag passed here since we test for the