summaryrefslogtreecommitdiff
path: root/scene/3d/navigation_region_3d.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/3d/navigation_region_3d.h')
-rw-r--r--scene/3d/navigation_region_3d.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/scene/3d/navigation_region_3d.h b/scene/3d/navigation_region_3d.h
index b15e97de6a..ba326abb46 100644
--- a/scene/3d/navigation_region_3d.h
+++ b/scene/3d/navigation_region_3d.h
@@ -44,11 +44,22 @@ class NavigationRegion3D : public Node3D {
real_t enter_cost = 0.0;
real_t travel_cost = 1.0;
- Node *debug_view = nullptr;
Thread bake_thread;
void _navigation_changed();
+#ifdef DEBUG_ENABLED
+ RID debug_instance;
+ RID debug_edge_connections_instance;
+ Ref<ArrayMesh> debug_mesh;
+ Ref<ArrayMesh> debug_edge_connections_mesh;
+
+private:
+ void _update_debug_mesh();
+ void _update_debug_edge_connections_mesh();
+ void _navigation_map_changed(RID p_map);
+#endif // DEBUG_ENABLED
+
protected:
void _notification(int p_what);
static void _bind_methods();