From ea781c9dccc3704b46f183c62bfb3540e44a9905 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 27 May 2022 20:20:03 +0900 Subject: [PATCH] [qfmap] Fix some blender bit-rot. --- tools/io_qfmap/entity.py | 2 +- tools/io_qfmap/import_map.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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"])