From b284e05536ea0f7dcfc294c02f803386f373a3cf Mon Sep 17 00:00:00 2001 From: nokoe Date: Thu, 27 Jun 2024 17:39:37 +0200 Subject: sdfgi, voxelgi settings --- client/map/map.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/map') diff --git a/client/map/map.gd b/client/map/map.gd index 32b267d7..ca3069ad 100644 --- a/client/map/map.gd +++ b/client/map/map.gd @@ -34,7 +34,8 @@ func remove_tile_if_exists(pos: Vector2i): func _ready(): if baking: return - voxelgi_timer.connect("timeout", gi_bake) + if Global.settings["voxel_gi"]["value"]: + voxelgi_timer.connect("timeout", gi_bake) func gi_bake(): print("Map: Rebaking VoxelGI") -- cgit v1.2.3-70-g09d2