Add null check for NavigationMesh.create_from_mesh()
(cherry picked from commit cf6bfea93f
)
This commit is contained in:
parent
216aba8228
commit
6ea1e97e06
@ -33,6 +33,7 @@
|
||||
#include "navigation.h"
|
||||
|
||||
void NavigationMesh::create_from_mesh(const Ref<Mesh> &p_mesh) {
|
||||
ERR_FAIL_COND(p_mesh.is_null());
|
||||
|
||||
vertices = PoolVector<Vector3>();
|
||||
clear_polygons();
|
||||
|
Loading…
Reference in New Issue
Block a user