diff --git a/servers/navigation/navigation_path_query_parameters_2d.cpp b/servers/navigation/navigation_path_query_parameters_2d.cpp index e13079edd..b9e84bfa2 100644 --- a/servers/navigation/navigation_path_query_parameters_2d.cpp +++ b/servers/navigation/navigation_path_query_parameters_2d.cpp @@ -83,7 +83,7 @@ void NavigationPathQueryParameters2D::set_map(const RID &p_map) { parameters.map = p_map; } -const RID NavigationPathQueryParameters2D::get_map() const { +RID NavigationPathQueryParameters2D::get_map() const { return parameters.map; } diff --git a/servers/navigation/navigation_path_query_parameters_2d.h b/servers/navigation/navigation_path_query_parameters_2d.h index c29e0f6c8..7113da495 100644 --- a/servers/navigation/navigation_path_query_parameters_2d.h +++ b/servers/navigation/navigation_path_query_parameters_2d.h @@ -70,7 +70,7 @@ public: PathPostProcessing get_path_postprocessing() const; void set_map(const RID &p_map); - const RID get_map() const; + RID get_map() const; void set_start_position(const Vector2 p_start_position); Vector2 get_start_position() const; diff --git a/servers/navigation/navigation_path_query_parameters_3d.cpp b/servers/navigation/navigation_path_query_parameters_3d.cpp index 817c2c00e..60c58b3a4 100644 --- a/servers/navigation/navigation_path_query_parameters_3d.cpp +++ b/servers/navigation/navigation_path_query_parameters_3d.cpp @@ -83,7 +83,7 @@ void NavigationPathQueryParameters3D::set_map(const RID &p_map) { parameters.map = p_map; } -const RID NavigationPathQueryParameters3D::get_map() const { +RID NavigationPathQueryParameters3D::get_map() const { return parameters.map; } @@ -91,7 +91,7 @@ void NavigationPathQueryParameters3D::set_start_position(const Vector3 &p_start_ parameters.start_position = p_start_position; } -const Vector3 NavigationPathQueryParameters3D::get_start_position() const { +Vector3 NavigationPathQueryParameters3D::get_start_position() const { return parameters.start_position; } @@ -99,7 +99,7 @@ void NavigationPathQueryParameters3D::set_target_position(const Vector3 &p_targe parameters.target_position = p_target_position; } -const Vector3 NavigationPathQueryParameters3D::get_target_position() const { +Vector3 NavigationPathQueryParameters3D::get_target_position() const { return parameters.target_position; } diff --git a/servers/navigation/navigation_path_query_parameters_3d.h b/servers/navigation/navigation_path_query_parameters_3d.h index 0037c6acd..0940e2f01 100644 --- a/servers/navigation/navigation_path_query_parameters_3d.h +++ b/servers/navigation/navigation_path_query_parameters_3d.h @@ -69,13 +69,13 @@ public: PathPostProcessing get_path_postprocessing() const; void set_map(const RID &p_map); - const RID get_map() const; + RID get_map() const; void set_start_position(const Vector3 &p_start_position); - const Vector3 get_start_position() const; + Vector3 get_start_position() const; void set_target_position(const Vector3 &p_target_position); - const Vector3 get_target_position() const; + Vector3 get_target_position() const; void set_navigation_layers(uint32_t p_navigation_layers); uint32_t get_navigation_layers() const;