Add null check for NavigationMesh.create_from_mesh()

(cherry picked from commit cf6bfea93f)
This commit is contained in:
sps1112 2021-03-03 15:59:30 +05:30 committed by Rémi Verschelde
parent 216aba8228
commit 6ea1e97e06

View File

@ -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();