Skip to content
Snippets Groups Projects
Commit 5dc61be8 authored by Philipp Oeser's avatar Philipp Oeser
Browse files

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.
parent 19a539df
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment