Fix show_envmap
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user