Add reset envmap button
This commit is contained in:
@@ -301,6 +301,7 @@ function project_set_default_envmap() {
|
||||
scene_world._.radiance_mipmaps = context_raw.default_radiance_mipmaps;
|
||||
scene_world._.irradiance = context_raw.default_irradiance;
|
||||
scene_world.strength = 4.0;
|
||||
context_raw.envmap_angle = 0.0;
|
||||
}
|
||||
|
||||
function project_import_material() {
|
||||
|
||||
@@ -357,6 +357,10 @@ function ui_menubar_draw_category_items() {
|
||||
context_raw.ddirty = 2;
|
||||
}
|
||||
|
||||
if (ui_menu_button(tr("Reset Envmap"))) {
|
||||
project_set_default_envmap();
|
||||
}
|
||||
|
||||
context_update_envmap();
|
||||
|
||||
if (ui.changed) {
|
||||
|
||||
Reference in New Issue
Block a user