diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2012-06-18 18:41:10 +0400 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2012-06-18 18:41:10 +0400 |
commit | 5dc61be8f692be397b302ea68fee3707cec9f845 (patch) | |
tree | a0899403a45e5438d88d8a9a874a9c3ee024d66b /io_scene_obj | |
parent | 19a539df76903106de2a96b0b5503d0b0734eed3 (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.py | 2 |
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 |