2
0
Эх сурвалжийг харах

Add null check for NavigationMesh.create_from_mesh()

sps1112 4 жил өмнө
parent
commit
cf6bfea93f

+ 2 - 0
scene/resources/navigation_mesh.cpp

@@ -31,6 +31,8 @@
 #include "navigation_mesh.h"
 
 void NavigationMesh::create_from_mesh(const Ref<Mesh> &p_mesh) {
+	ERR_FAIL_COND(p_mesh.is_null());
+
 	vertices = Vector<Vector3>();
 	clear_polygons();