From e1c12fe8136457fcc4f63236bee798c512457b20 Mon Sep 17 00:00:00 2001 From: Luke Hubmayer-Werner Date: Thu, 30 May 2024 01:04:35 +0930 Subject: [PATCH] Fix subsampling bypassing getter and creating 0x0 viewport --- singletons/Settings.gd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/singletons/Settings.gd b/singletons/Settings.gd index f0b345f..f84f84d 100644 --- a/singletons/Settings.gd +++ b/singletons/Settings.gd @@ -49,10 +49,10 @@ func load_settings(): config.set_value('libraries', 'additional_paths', []) match config.load(SETTINGS_FILENAME): OK: - SSXY_set(Vector2( - config.get_value('rendering', 'subsampling_x', subsampling_x), - config.get_value('rendering', 'subsampling_y', subsampling_y) - )) + self.subsampling = Vector2( + config.get_value('rendering', 'subsampling_x', self.subsampling_x), + config.get_value('rendering', 'subsampling_y', self.subsampling_y) + ) emit_signal('config_loaded') ERR_FILE_NOT_FOUND: save_settings()