Ensure that NavMesh baking updates the inspector

This commit is contained in:
Yuri Sizov 2022-01-26 01:16:50 +03:00
parent 36069ebf9a
commit 797bb1d97e
2 changed files with 5 additions and 0 deletions

View file

@ -657,6 +657,8 @@ void NavigationMeshGenerator::bake(Ref<NavigationMesh> p_nav_mesh, Node *p_node)
if (ep)
memdelete(ep);
#endif
p_nav_mesh->property_list_changed_notify();
}
void NavigationMeshGenerator::clear(Ref<NavigationMesh> p_nav_mesh) {

View file

@ -34,10 +34,13 @@
#include "scene/resources/mesh.h"
class Mesh;
class NavigationMeshGenerator;
class NavigationMesh : public Resource {
GDCLASS(NavigationMesh, Resource);
friend class NavigationMeshGenerator;
PoolVector<Vector3> vertices;
struct Polygon {
Vector<int> indices;