From b079488c27fa71011b9606fb483ea97cd3a1d2a6 Mon Sep 17 00:00:00 2001 From: dawnDus <96957561+dawndus@users.noreply.github.com> Date: Tue, 8 Mar 2022 21:37:44 -0500 Subject: [PATCH] Fix graphics toggle breaking NPCs and TSC --- src/menu/settings_menu.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/menu/settings_menu.rs b/src/menu/settings_menu.rs index 4b313e1..fa160db 100644 --- a/src/menu/settings_menu.rs +++ b/src/menu/settings_menu.rs @@ -240,7 +240,11 @@ impl SettingsMenu { MenuSelectionResult::Selected(4, toggle) => { if let MenuEntry::Toggle(_, value) = toggle { state.settings.original_textures = !state.settings.original_textures; - state.reload_resources(ctx)?; + if self.on_title { + state.reload_resources(ctx)?; + } else { + state.reload_graphics(); + } let _ = state.settings.save(ctx); *value = state.settings.original_textures;