mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 11:03:03 +08:00
Updating coordinate system mobjects
This commit is contained in:
@ -56,12 +56,16 @@ def digest_config(obj, kwargs, caller_locals={}):
|
||||
obj.__dict__ = merge_config(all_dicts)
|
||||
|
||||
|
||||
# TODO, priority here is backwards from dict.update.
|
||||
# Should I change the convention?
|
||||
def merge_config(all_dicts):
|
||||
"""
|
||||
Creates a dict whose keyset is the union of all the
|
||||
input dictionaries. The value for each key is based
|
||||
on the first dict in the list with that key.
|
||||
|
||||
First dicts have higher priority
|
||||
|
||||
When values are dictionaries, it is applied recursively
|
||||
"""
|
||||
all_config = reduce(op.add, [list(d.items()) for d in all_dicts])
|
||||
|
Reference in New Issue
Block a user