mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Add null check for NavigationMesh.create_from_mesh()
(cherry picked from commit cf6bfea93f)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user