Fix show_envmap

This commit is contained in:
luboslenco
2025-09-03 10:59:09 +02:00
parent 76d9aecb9b
commit e09f420833
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -57,6 +57,7 @@ function import_envmap_run(path: string, image: gpu_texture_t) {
scene_world._.radiance = import_envmap_radiance;
scene_world._.radiance_mipmaps = import_envmap_mips;
context_raw.saved_envmap = image;
context_raw.show_envmap = true;
if (context_raw.show_envmap_blur) {
scene_world._.envmap = scene_world._.radiance_mipmaps[0];
}
+1
View File
@@ -341,6 +341,7 @@ function ui_menubar_draw_category_items() {
context_raw.ddirty = 2;
}
context_raw.show_envmap_handle.selected = context_raw.show_envmap;
context_raw.show_envmap = ui_check(context_raw.show_envmap_handle, " " + tr("Envmap"));
if (context_raw.show_envmap_handle.changed) {
context_load_envmap();