From 697903afa0e63d8138a30c3e7f54b1cc483c6807 Mon Sep 17 00:00:00 2001 From: tpart Date: Sun, 21 Sep 2025 22:58:31 +0200 Subject: Remove tool from scripts as it causes problems --- client/map/kitchen_background.gd | 1 - client/map/map.gd | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'client/map') 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 . # -@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 . # -@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() -- cgit v1.2.3-70-g09d2