fix app crashing on no walls

This commit is contained in:
Nitwel 2023-11-21 11:51:33 +01:00
parent bab20aea3f
commit 0c33b4ab1b

View File

@ -32,6 +32,10 @@ func _ready():
wall_corners.visible = false
wall_edges.visible = false
wall_mesh.mesh = generate_mesh()
if wall_mesh.mesh == null:
return
var collisions = generate_collision(wall_mesh.mesh)
for old_coll in wall_collisions.get_children():