mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Make the type of EntityClass.flagnames consistent.
Sometimes list and sometimes tuple makes for a mess.
This commit is contained in:
parent
709ab05713
commit
825ce0dad6
2 changed files with 4 additions and 4 deletions
|
@ -49,8 +49,8 @@ class EntityPanel(bpy.types.Panel):
|
|||
obj = context.active_object
|
||||
qfmap = context.scene.qfmap
|
||||
ec = qfmap.entity_classes.entity_classes[obj.qfentity.classname]
|
||||
flags = ec.flagnames + [""] * (8 - len(ec.flagnames))
|
||||
flags += ["!easy", "!medium", "!hard", "!dm"]
|
||||
flags = ec.flagnames + ("",) * (8 - len(ec.flagnames))
|
||||
flags += ("!easy", "!medium", "!hard", "!dm")
|
||||
layout.prop(obj.qfentity, "classname")
|
||||
split = layout.split()
|
||||
for c in range(3):
|
||||
|
|
|
@ -39,9 +39,9 @@ class EntityClass:
|
|||
else:
|
||||
size = None
|
||||
if "flagnames" in d:
|
||||
flagnames = list(d["flagnames"])
|
||||
flagnames = tuple(d["flagnames"])
|
||||
else:
|
||||
flagnames = []
|
||||
flagnames = ()
|
||||
if "comment" in d:
|
||||
comment = d["comment"]
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue