Merge pull request #38446 from qarmin/navigation_polygon_type

Fixes type of array in _set_outlines function
This commit is contained in:
Rémi Verschelde 2020-05-04 16:36:16 +02:00 committed by GitHub
commit 560510b93b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -118,7 +118,7 @@ Array NavigationPolygon::_get_polygons() const {
return ret;
}
void NavigationPolygon::_set_outlines(const TypedArray<Vector<int32_t>> &p_array) {
void NavigationPolygon::_set_outlines(const TypedArray<Vector<Vector2>> &p_array) {
outlines.resize(p_array.size());
for (int i = 0; i < p_array.size(); i++) {

View file

@ -58,7 +58,7 @@ protected:
void _set_polygons(const TypedArray<Vector<int32_t>> &p_array);
Array _get_polygons() const;
void _set_outlines(const TypedArray<Vector<int32_t>> &p_array);
void _set_outlines(const TypedArray<Vector<Vector2>> &p_array);
Array _get_outlines() const;
public: