diff --git a/tools/io_qfmap/entity.py b/tools/io_qfmap/entity.py index 7657fbf40..58c6d8953 100644 --- a/tools/io_qfmap/entity.py +++ b/tools/io_qfmap/entity.py @@ -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): diff --git a/tools/io_qfmap/import_map.py b/tools/io_qfmap/import_map.py index c247d4920..e814cf380 100644 --- a/tools/io_qfmap/import_map.py +++ b/tools/io_qfmap/import_map.py @@ -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"])