mirror of
https://github.com/godotengine/godot.git
synced 2025-04-13 01:00:35 +08:00
Merge pull request #46617 from sps1112/fix-navigationmesh-crash
Add null check in NavigationMesh.new().create_from_mesh(BoxShape.new())
This commit is contained in:
commit
864caf5711
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user