fix app crashing on no walls
This commit is contained in:
parent
bab20aea3f
commit
0c33b4ab1b
|
@ -32,6 +32,10 @@ func _ready():
|
||||||
wall_corners.visible = false
|
wall_corners.visible = false
|
||||||
wall_edges.visible = false
|
wall_edges.visible = false
|
||||||
wall_mesh.mesh = generate_mesh()
|
wall_mesh.mesh = generate_mesh()
|
||||||
|
|
||||||
|
if wall_mesh.mesh == null:
|
||||||
|
return
|
||||||
|
|
||||||
var collisions = generate_collision(wall_mesh.mesh)
|
var collisions = generate_collision(wall_mesh.mesh)
|
||||||
|
|
||||||
for old_coll in wall_collisions.get_children():
|
for old_coll in wall_collisions.get_children():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user