Skip to content

Commit

Permalink
Ensure that NavMesh baking updates the inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriSizov committed Jan 25, 2022
1 parent 36069eb commit 797bb1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/navigation/navigation_mesh_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 3 additions & 0 deletions scene/resources/navigation_mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 797bb1d

Please sign in to comment.