Skip to content

Commit

Permalink
Fix Editor Navigation debug edge connection visuals
Browse files Browse the repository at this point in the history
Fixes missing Navigation debug edge connection visuals in Editor due to disabled NavigationServer.
  • Loading branch information
smix8 committed Aug 9, 2022
1 parent c2eaaef commit 8bfea7d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions servers/navigation_server_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ NavigationServer3D::NavigationServer3D() {
debug_navigation_enable_edge_lines = GLOBAL_DEF("debug/shapes/navigation/enable_edge_lines", true);
debug_navigation_enable_edge_lines_xray = GLOBAL_DEF("debug/shapes/navigation/enable_edge_lines_xray", true);
debug_navigation_enable_geometry_face_random_color = GLOBAL_DEF("debug/shapes/navigation/enable_geometry_face_random_color", true);

if (Engine::get_singleton()->is_editor_hint()) {
// enable NavigationServer3D when in Editor or else navmesh edge connections are invisible
// on runtime tests SceneTree has "Visible Navigation" set and main iteration takes care of this
set_debug_enabled(true);
}
#endif // DEBUG_ENABLED
}

Expand Down

0 comments on commit 8bfea7d

Please sign in to comment.