Skip to content

Commit a7e14f3

Browse files
committed
Fix bug when importing entities (Blender API change)
1 parent 5915fcf commit a7e14f3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

io_mesh_bsp/bsp_importer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,9 @@ def entity_add(entity, scale):
345345

346346
# Create an empty to represent the entity
347347
classname = entity['classname']
348-
obj = bpy.data.objects.new(classname)
348+
obj = bpy.data.objects.new(classname, None) # create an empty
349349
obj.location = origin
350350
obj.rotation_euler = angle
351-
obj.type = 'EMPTY'
352351
obj.empty_display_type = 'PLAIN_AXES'
353352
obj.show_name = True
354353

0 commit comments

Comments
 (0)