From fb639f160587356abe1d2093f863400c48e2cb21 Mon Sep 17 00:00:00 2001 From: Lila Date: Wed, 9 Oct 2024 13:24:53 +0100 Subject: [PATCH] Request Changes Co-Authored-By: Dragorn421 --- __init__.py | 2 +- fast64_internal/utility.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 5ab654ba6..1e45c1003 100644 --- a/__init__.py +++ b/__init__.py @@ -4,7 +4,7 @@ from . import addon_updater_ops -from .fast64_internal.utility import prop_split, multilineLabel, prop_group_to_json, set_prop_if_in_data +from .fast64_internal.utility import prop_split, multilineLabel, set_prop_if_in_data from .fast64_internal.repo_settings import ( draw_repo_settings, diff --git a/fast64_internal/utility.py b/fast64_internal/utility.py index aef4ee729..3237b1c8c 100644 --- a/fast64_internal/utility.py +++ b/fast64_internal/utility.py @@ -1904,4 +1904,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])