From e97cae86b83b3cb38177df39f54b465eb0f9063b Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Thu, 6 Jan 2022 21:23:53 +0800 Subject: [PATCH] Add missing break in NavigationObstacle2D --- scene/2d/navigation_obstacle_2d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/2d/navigation_obstacle_2d.cpp b/scene/2d/navigation_obstacle_2d.cpp index 1df00f719b7..c72d17566ea 100644 --- a/scene/2d/navigation_obstacle_2d.cpp +++ b/scene/2d/navigation_obstacle_2d.cpp @@ -87,10 +87,10 @@ void NavigationObstacle2D::_notification(int p_what) { case NOTIFICATION_PARENTED: { parent_node2d = Object::cast_to(get_parent()); reevaluate_agent_radius(); - } + } break; case NOTIFICATION_UNPARENTED: { parent_node2d = nullptr; - } + } break; case NOTIFICATION_INTERNAL_PHYSICS_PROCESS: { if (parent_node2d) { Navigation2DServer::get_singleton()->agent_set_position(agent, parent_node2d->get_global_transform().get_origin());