[qfmap] Fix some blender bit-rot.

This commit is contained in:
Bill Currie 2022-05-27 20:20:03 +09:00
parent 6e8a3b8153
commit ea781c9dcc
2 changed files with 3 additions and 3 deletions

View file

@ -268,7 +268,7 @@ def set_entity_props(obj, ent):
qfe.classname = ent.d["classname"]
except TypeError:
#FIXME hmm, maybe an enum wasn't the most brilliant idea?
qfe.classname = ''
qfe.classname = '.'
if "spawnflags" in ent.d:
flags = int(float(ent.d["spawnflags"]))
for i in range(12):

View file

@ -175,8 +175,8 @@ def process_entity(ent, wads):
obj = bpy.data.objects.new(name, mesh)
else:
obj = bpy.data.objects.new(name, None)
obj.empty_draw_type = 'CUBE'
obj.empty_draw_size = 8
obj.empty_display_type = 'CUBE'
obj.empty_display_size = 8
obj.show_name = True
if "origin" in ent.d:
obj.location = parse_vector (ent.d["origin"])