mirror of
https://github.com/godotengine/godot.git
synced 2025-04-07 00:44:24 +08:00
Merge pull request #103784 from Dominrog/fix-visible-avoidance-debug
Fix visible avoidance debug rendering in NavigationRegion2D
This commit is contained in:
commit
ba5edb2a77
@ -181,7 +181,7 @@ void NavigationRegion2D::_notification(int p_what) {
|
||||
|
||||
case NOTIFICATION_DRAW: {
|
||||
#ifdef DEBUG_ENABLED
|
||||
if (is_inside_tree() && (Engine::get_singleton()->is_editor_hint() || NavigationServer2D::get_singleton()->get_debug_enabled()) && navigation_polygon.is_valid()) {
|
||||
if (is_inside_tree() && (Engine::get_singleton()->is_editor_hint() || (NavigationServer2D::get_singleton()->get_debug_enabled() && NavigationServer2D::get_singleton()->get_debug_navigation_enabled())) && navigation_polygon.is_valid()) {
|
||||
_update_debug_mesh();
|
||||
_update_debug_edge_connections_mesh();
|
||||
_update_debug_baking_rect();
|
||||
|
Loading…
x
Reference in New Issue
Block a user