diff options
| author | tpart <tpart120@proton.me> | 2025-09-21 19:34:45 +0200 |
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2025-09-21 19:34:45 +0200 |
| commit | a7f70f89b349fd7482a5d9e268f9b60763406e49 (patch) | |
| tree | 45c58736f58c1cb9a15bf6845da7bd2cd195d3a6 /client/map/map.gd | |
| parent | 443c8aab02735f2e9b9c044f44dd88cb92551fa6 (diff) | |
| download | hurrycurry-a7f70f89b349fd7482a5d9e268f9b60763406e49.tar hurrycurry-a7f70f89b349fd7482a5d9e268f9b60763406e49.tar.bz2 hurrycurry-a7f70f89b349fd7482a5d9e268f9b60763406e49.tar.zst | |
Redesign character menu background
Diffstat (limited to 'client/map/map.gd')
| -rw-r--r-- | client/map/map.gd | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/client/map/map.gd b/client/map/map.gd index 235425a0..7f854c25 100644 --- a/client/map/map.gd +++ b/client/map/map.gd @@ -13,6 +13,7 @@ # 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 @@ -54,7 +55,8 @@ func clear_tile(pos: Vector2i): @onready var voxelgi: VoxelGI = $VoxelGI func _ready(): - Settings.hook_changed("graphics.gi", false, apply_gi_setting) + if not Engine.is_editor_hint(): + 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) @@ -73,7 +75,8 @@ func apply_gi_setting(state): voxelgi.data = null func gi_bake(): - if Settings.read("graphics.gi") != "voxelgi": return + if not Engine.is_editor_hint(): + if Settings.read("graphics.gi") != "voxelgi": return print("Map: Rebaking VoxelGI") currently_baked = true gi_bake_blocking() |