Skip to content

Commit

Permalink
Set mesh_name for worldspawn
Browse files Browse the repository at this point in the history
so it doesn't get rotated or scaled if entity has rotation or scale keys.
  • Loading branch information
SomaZ committed Feb 4, 2023
1 parent 0bccae7 commit 8e5e1d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions import_bsp/Entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def ImportEntitiesText(entities_string, import_settings, bsp = None, only_lights

if n_ent == 0 and not only_lights:
me = bpy.data.meshes["*0"]
mesh_name = "*0"
ob = bpy.data.objects.new("Entity " + (str(n_ent).zfill(4)), me)
obj_list.append(ob)
else:
Expand Down

0 comments on commit 8e5e1d3

Please sign in to comment.