diff options
Diffstat (limited to 'scene/3d/navigation_obstacle_3d.cpp')
| -rw-r--r-- | scene/3d/navigation_obstacle_3d.cpp | 18 | 
1 files changed, 9 insertions, 9 deletions
diff --git a/scene/3d/navigation_obstacle_3d.cpp b/scene/3d/navigation_obstacle_3d.cpp index 63c273b4ca..2ee2008799 100644 --- a/scene/3d/navigation_obstacle_3d.cpp +++ b/scene/3d/navigation_obstacle_3d.cpp @@ -49,12 +49,12 @@ void NavigationObstacle3D::_notification(int p_what) {  			// Search the navigation node and set it  			{ -				Navigation3D *nav = NULL; +				Navigation3D *nav = nullptr;  				Node *p = get_parent(); -				while (p != NULL) { +				while (p != nullptr) {  					nav = Object::cast_to<Navigation3D>(p); -					if (nav != NULL) -						p = NULL; +					if (nav != nullptr) +						p = nullptr;  					else  						p = p->get_parent();  				} @@ -65,7 +65,7 @@ void NavigationObstacle3D::_notification(int p_what) {  			set_physics_process_internal(true);  		} break;  		case NOTIFICATION_EXIT_TREE: { -			set_navigation(NULL); +			set_navigation(nullptr);  			set_physics_process_internal(false);  		} break;  		case NOTIFICATION_INTERNAL_PHYSICS_PROCESS: { @@ -87,7 +87,7 @@ void NavigationObstacle3D::_notification(int p_what) {  }  NavigationObstacle3D::NavigationObstacle3D() : -		navigation(NULL), +		navigation(nullptr),  		agent(RID()) {  	agent = NavigationServer3D::get_singleton()->agent_create();  } @@ -102,12 +102,12 @@ void NavigationObstacle3D::set_navigation(Navigation3D *p_nav) {  		return; // Pointless  	navigation = p_nav; -	NavigationServer3D::get_singleton()->agent_set_map(agent, navigation == NULL ? RID() : navigation->get_rid()); +	NavigationServer3D::get_singleton()->agent_set_map(agent, navigation == nullptr ? RID() : navigation->get_rid());  }  void NavigationObstacle3D::set_navigation_node(Node *p_nav) {  	Navigation3D *nav = Object::cast_to<Navigation3D>(p_nav); -	ERR_FAIL_COND(nav == NULL); +	ERR_FAIL_COND(nav == nullptr);  	set_navigation(nav);  } @@ -118,7 +118,7 @@ Node *NavigationObstacle3D::get_navigation_node() const {  String NavigationObstacle3D::get_configuration_warning() const {  	if (!Object::cast_to<Node3D>(get_parent())) { -		return TTR("The NavigationObstacle only serves to provide collision avoidance to a spatial object."); +		return TTR("The NavigationObstacle3D only serves to provide collision avoidance to a spatial object.");  	}  	return String();  |