mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-25 05:41:20 +00:00
[qfmap] Fix some blender bit-rot.
This commit is contained in:
parent
6e8a3b8153
commit
ea781c9dcc
2 changed files with 3 additions and 3 deletions
|
@ -268,7 +268,7 @@ def set_entity_props(obj, ent):
|
||||||
qfe.classname = ent.d["classname"]
|
qfe.classname = ent.d["classname"]
|
||||||
except TypeError:
|
except TypeError:
|
||||||
#FIXME hmm, maybe an enum wasn't the most brilliant idea?
|
#FIXME hmm, maybe an enum wasn't the most brilliant idea?
|
||||||
qfe.classname = ''
|
qfe.classname = '.'
|
||||||
if "spawnflags" in ent.d:
|
if "spawnflags" in ent.d:
|
||||||
flags = int(float(ent.d["spawnflags"]))
|
flags = int(float(ent.d["spawnflags"]))
|
||||||
for i in range(12):
|
for i in range(12):
|
||||||
|
|
|
@ -175,8 +175,8 @@ def process_entity(ent, wads):
|
||||||
obj = bpy.data.objects.new(name, mesh)
|
obj = bpy.data.objects.new(name, mesh)
|
||||||
else:
|
else:
|
||||||
obj = bpy.data.objects.new(name, None)
|
obj = bpy.data.objects.new(name, None)
|
||||||
obj.empty_draw_type = 'CUBE'
|
obj.empty_display_type = 'CUBE'
|
||||||
obj.empty_draw_size = 8
|
obj.empty_display_size = 8
|
||||||
obj.show_name = True
|
obj.show_name = True
|
||||||
if "origin" in ent.d:
|
if "origin" in ent.d:
|
||||||
obj.location = parse_vector (ent.d["origin"])
|
obj.location = parse_vector (ent.d["origin"])
|
||||||
|
|
Loading…
Reference in a new issue