Fix subsampling bypassing getter and creating 0x0 viewport

This commit is contained in:
Luke Hubmayer-Werner 2024-05-30 01:04:35 +09:30
parent 91424ac804
commit e1c12fe813
1 changed files with 4 additions and 4 deletions

View File

@ -49,10 +49,10 @@ func load_settings():
config.set_value('libraries', 'additional_paths', []) config.set_value('libraries', 'additional_paths', [])
match config.load(SETTINGS_FILENAME): match config.load(SETTINGS_FILENAME):
OK: OK:
SSXY_set(Vector2( self.subsampling = Vector2(
config.get_value('rendering', 'subsampling_x', subsampling_x), config.get_value('rendering', 'subsampling_x', self.subsampling_x),
config.get_value('rendering', 'subsampling_y', subsampling_y) config.get_value('rendering', 'subsampling_y', self.subsampling_y)
)) )
emit_signal('config_loaded') emit_signal('config_loaded')
ERR_FILE_NOT_FOUND: ERR_FILE_NOT_FOUND:
save_settings() save_settings()