You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Rework Navigation Avoidance
Rework Navigation Avoidance.
This commit is contained in:
@@ -907,7 +907,7 @@ void GridMap::_notification(int p_what) {
|
||||
|
||||
#ifdef DEBUG_ENABLED
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
if (bake_navigation && NavigationServer3D::get_singleton()->get_debug_enabled()) {
|
||||
if (bake_navigation && NavigationServer3D::get_singleton()->get_debug_navigation_enabled()) {
|
||||
_update_navigation_debug_edge_connections();
|
||||
}
|
||||
} break;
|
||||
@@ -1352,7 +1352,7 @@ void GridMap::_update_octant_navigation_debug_edge_connections_mesh(const Octant
|
||||
ERR_FAIL_COND(!octant_map.has(p_key));
|
||||
Octant &g = *octant_map[p_key];
|
||||
|
||||
if (!NavigationServer3D::get_singleton()->get_debug_enabled()) {
|
||||
if (!NavigationServer3D::get_singleton()->get_debug_navigation_enabled()) {
|
||||
if (g.navigation_debug_edge_connections_instance.is_valid()) {
|
||||
RS::get_singleton()->instance_set_visible(g.navigation_debug_edge_connections_instance, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user