Fix prototype attr-inheritance with mixed full/simple attrs. Resolve #2474.

This commit is contained in:
Griatch 2021-07-26 23:42:35 +02:00
parent 07e765939c
commit 3bc841b781
2 changed files with 41 additions and 2 deletions

View file

@ -892,7 +892,7 @@ def spawn(*prototypes, caller=None, **kwargs):
for key, protparent in kwargs.get("prototype_parents", {}).items():
key = str(key).lower()
protparent["prototype_key"] = str(protparent.get("prototype_key", key)).lower()
protparents[key] = protparent
protparents[key] = protlib.homogenize_prototype(protparent)
if "return_parents" in kwargs:
# only return the parents