Skip to content

Commit

Permalink
Update utility.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilaa3 committed Oct 31, 2024
1 parent d1152d7 commit 3d4cdbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fast64_internal/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])

0 comments on commit 3d4cdbe

Please sign in to comment.