Fix subsampling bypassing getter and creating 0x0 viewport
This commit is contained in:
parent
91424ac804
commit
e1c12fe813
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue