godot freezes if new navmesh is assigned
Created by: swenner
Bugsquad edit: Initially reported against 1.1rc2.
Assigning a Navigation mesh to a NavigationMeshInstance freezes Godot.
How to reproduce: Open the Navmesh Demo. Clear the Navmesh and create a new one. Godot no longer responds.
ERROR: create: Condition ' !fc || ((fc%3) != 0) ' is true. At: core/math/triangle_mesh.cpp:102. ERROR: mesh_add_surface: Condition ' array_len==0 ' is true. At: drivers/gles2/rasterizer_gles2.cpp:1804. ERROR: add_surface: Condition ' len==0 ' is true. At: scene/resources/mesh.cpp:268. ERROR: mesh_surface_set_material: Index p_surface out of size (mesh->surfaces.size()). At: drivers/gles2/rasterizer_gles2.cpp:2621.