Browse Source

Merge pull request #56557 from timothyqiu/missing-break

Rémi Verschelde 3 years ago
parent
commit
95bface706
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scene/2d/navigation_obstacle_2d.cpp

+ 2 - 2
scene/2d/navigation_obstacle_2d.cpp

@@ -87,10 +87,10 @@ void NavigationObstacle2D::_notification(int p_what) {
 		case NOTIFICATION_PARENTED: {
 			parent_node2d = Object::cast_to<Node2D>(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());