Fix config restore

This commit is contained in:
luboslenco
2025-09-30 17:56:49 +02:00
parent f01c48b112
commit 991f6dc96c
2 changed files with 6 additions and 15 deletions
+6
View File
@@ -285,6 +285,12 @@ function context_create(): context_t {
c.brush_locked = false;
c.camera_type = camera_type_t.PERSPECTIVE;
c.cam_handle = ui_handle_create();
c.hssao = ui_handle_create();
c.hbloom = ui_handle_create();
c.hsupersample = ui_handle_create();
c.hssao.b = config_raw.rp_ssao;
c.hbloom.b = config_raw.rp_bloom;
c.hsupersample.i = config_get_super_sample_quality(config_raw.rp_supersample);
c.texture_export_path = "";
c.last_status_position = 0;
c.camera_controls = camera_controls_t.ORBIT;