Skip to content

Commit 72927b7

Browse files
committedJun 30, 2021
Fix spurious shadow enablement in mainmenu
fixes #11394
1 parent fa4dee0 commit 72927b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎builtin/mainmenu/tab_settings.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,6 @@ local function handle_settings_buttons(this, fields, tabname, tabdata)
369369
if fields["dd_shadows"] == labels.shadow_levels[1] then
370370
core.settings:set("enable_dynamic_shadows", "false")
371371
else
372-
core.settings:set("enable_dynamic_shadows", "true")
373372
local shadow_presets = {
374373
[2] = { 80, 512, "true", 0, "false" },
375374
[3] = { 120, 1024, "true", 1, "false" },
@@ -379,6 +378,7 @@ local function handle_settings_buttons(this, fields, tabname, tabdata)
379378
}
380379
local s = shadow_presets[table.indexof(labels.shadow_levels, fields["dd_shadows"])]
381380
if s then
381+
core.settings:set("enable_dynamic_shadows", "true")
382382
core.settings:set("shadow_map_max_distance", s[1])
383383
core.settings:set("shadow_map_texture_size", s[2])
384384
core.settings:set("shadow_map_texture_32bit", s[3])

0 commit comments

Comments
 (0)
Please sign in to comment.