diff options
| author | metamuffin <metamuffin@disroot.org> | 2024-09-27 15:06:25 +0200 | 
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-09-27 15:06:32 +0200 | 
| commit | efb1bdf2440b02438082c91caf67d3a9b7b5d55d (patch) | |
| tree | 274c5effaef44486627a268fa7cdfb630d09622e /client/map/map.gd | |
| parent | 70b463b5d11d4dbcef9631776bc69a00c30e7aee (diff) | |
| download | hurrycurry-efb1bdf2440b02438082c91caf67d3a9b7b5d55d.tar hurrycurry-efb1bdf2440b02438082c91caf67d3a9b7b5d55d.tar.bz2 hurrycurry-efb1bdf2440b02438082c91caf67d3a9b7b5d55d.tar.zst | |
disable floor optimization in menu background
Diffstat (limited to 'client/map/map.gd')
| -rw-r--r-- | client/map/map.gd | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/client/map/map.gd b/client/map/map.gd index 40451c57..4b15d55b 100644 --- a/client/map/map.gd +++ b/client/map/map.gd @@ -18,10 +18,12 @@  class_name Map  extends Node3D +@export var optimize: bool = true +  var tile_by_pos: Dictionary = {}  var autobake = false  var currently_baked = false -var floor_mesher := FloorMesher.new() +@onready var floor_mesher = FloorMesher.new() if optimize else null  var floor_node := MeshInstance3D.new()  func get_tile_name(pos: Vector2i): @@ -56,7 +58,7 @@ func _ready():  	add_child(floor_node)  func flush() -> void: -	floor_node.mesh = floor_mesher.flush() +	if floor_mesher != null: floor_node.mesh = floor_mesher.flush()  	gi_bake()  func apply_gi_setting(state): | 
