From 5dc61be8f692be397b302ea68fee3707cec9f845 Mon Sep 17 00:00:00 2001
From: Philipp Oeser <info@graphics-engineer.com>
Date: Mon, 18 Jun 2012 14:41:10 +0000
Subject: [PATCH] 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.
---
 io_scene_obj/import_obj.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py
index 39d929eef..890d1203c 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
-- 
GitLab