You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Add null check for NavigationMesh.create_from_mesh()
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user