Fix prototype attr-inheritance with mixed full/simple attrs. Resolve #2474.
This commit is contained in:
parent
07e765939c
commit
3bc841b781
2 changed files with 41 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue