You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Ensure that NavMesh baking updates the inspector
This commit is contained in:
@@ -657,6 +657,8 @@ void NavigationMeshGenerator::bake(Ref<NavigationMesh> p_nav_mesh, Node *p_node)
|
|||||||
if (ep)
|
if (ep)
|
||||||
memdelete(ep);
|
memdelete(ep);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
p_nav_mesh->property_list_changed_notify();
|
||||||
}
|
}
|
||||||
|
|
||||||
void NavigationMeshGenerator::clear(Ref<NavigationMesh> p_nav_mesh) {
|
void NavigationMeshGenerator::clear(Ref<NavigationMesh> p_nav_mesh) {
|
||||||
|
|||||||
@@ -34,10 +34,13 @@
|
|||||||
#include "scene/resources/mesh.h"
|
#include "scene/resources/mesh.h"
|
||||||
|
|
||||||
class Mesh;
|
class Mesh;
|
||||||
|
class NavigationMeshGenerator;
|
||||||
|
|
||||||
class NavigationMesh : public Resource {
|
class NavigationMesh : public Resource {
|
||||||
GDCLASS(NavigationMesh, Resource);
|
GDCLASS(NavigationMesh, Resource);
|
||||||
|
|
||||||
|
friend class NavigationMeshGenerator;
|
||||||
|
|
||||||
PoolVector<Vector3> vertices;
|
PoolVector<Vector3> vertices;
|
||||||
struct Polygon {
|
struct Polygon {
|
||||||
Vector<int> indices;
|
Vector<int> indices;
|
||||||
|
|||||||
Reference in New Issue
Block a user