aboutsummaryrefslogtreecommitdiff
path: root/client/map/map.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/map/map.gd')
-rw-r--r--client/map/map.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/map/map.gd b/client/map/map.gd
index 7be1a102..208665bf 100644
--- a/client/map/map.gd
+++ b/client/map/map.gd
@@ -54,7 +54,7 @@ func _ready():
voxelgi_timer.connect("timeout", gi_bake)
Global.settings_changed.connect(func():
# is not baked yet but setting is true
- if Global.get_setting("voxel_gi") and not currently_baked:
+ if Global.get_setting("gi") == 2 and not currently_baked:
gi_bake()
else:
currently_baked = false
@@ -62,7 +62,7 @@ func _ready():
)
func gi_bake():
- if not Global.get_setting("voxel_gi"): return
+ if not Global.get_setting("gi") == 2: return
print("Map: Rebaking VoxelGI")
currently_baked = true
gi_bake_blocking()