aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2025-09-21 22:58:31 +0200
committertpart <tpart120@proton.me>2025-09-21 22:58:36 +0200
commit697903afa0e63d8138a30c3e7f54b1cc483c6807 (patch)
tree595ae716f7b9aec731f50212185106b6885c6245 /client
parent578339717d584ce132695eb86a58f78a6b21bd33 (diff)
downloadhurrycurry-697903afa0e63d8138a30c3e7f54b1cc483c6807.tar
hurrycurry-697903afa0e63d8138a30c3e7f54b1cc483c6807.tar.bz2
hurrycurry-697903afa0e63d8138a30c3e7f54b1cc483c6807.tar.zst
Remove tool from scripts as it causes problems
Diffstat (limited to 'client')
-rw-r--r--client/map/kitchen_background.gd1
-rw-r--r--client/map/map.gd7
2 files changed, 2 insertions, 6 deletions
diff --git a/client/map/kitchen_background.gd b/client/map/kitchen_background.gd
index ff237b85..4b728a94 100644
--- a/client/map/kitchen_background.gd
+++ b/client/map/kitchen_background.gd
@@ -13,7 +13,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
-@tool
extends Node3D
@onready var map: Map = $Map
diff --git a/client/map/map.gd b/client/map/map.gd
index 7f854c25..235425a0 100644
--- a/client/map/map.gd
+++ b/client/map/map.gd
@@ -13,7 +13,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
-@tool
class_name Map
extends Node3D
@@ -55,8 +54,7 @@ func clear_tile(pos: Vector2i):
@onready var voxelgi: VoxelGI = $VoxelGI
func _ready():
- if not Engine.is_editor_hint():
- Settings.hook_changed("graphics.gi", false, apply_gi_setting)
+ Settings.hook_changed("graphics.gi", false, apply_gi_setting)
floor_node.material_override = preload("res://map/tiles/floor_material.tres")
for fm in tile_factory.floor_meshers.values():
add_child(fm.mesh_instance)
@@ -75,8 +73,7 @@ func apply_gi_setting(state):
voxelgi.data = null
func gi_bake():
- if not Engine.is_editor_hint():
- if Settings.read("graphics.gi") != "voxelgi": return
+ if Settings.read("graphics.gi") != "voxelgi": return
print("Map: Rebaking VoxelGI")
currently_baked = true
gi_bake_blocking()