diff --git a/fast64_internal/utility.py b/fast64_internal/utility.py index 5b36a00a..702ddd69 100644 --- a/fast64_internal/utility.py +++ b/fast64_internal/utility.py @@ -1907,4 +1907,5 @@ def set_if_different(owner: object, prop: str, value): def set_prop_if_in_data(owner: object, prop_name: str, data: dict, data_name: str): - set_if_different(owner, prop_name, data.get(data_name, getattr(owner, prop_name))) + if data_name in data: + set_if_different(owner, prop_name, data[data_name])