Commit 4af27475 by qarmin

Fixes type of array in _set_outlines function

parent 316b60aa
......@@ -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++) {
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment