Use Vector2i when returning atlas size in Geometry2D::make_atlas

This commit is contained in:
Marc Gilleron 2022-09-19 11:37:02 +01:00
parent 908795301b
commit 700bb066e0
2 changed files with 2 additions and 3 deletions

View file

@ -810,14 +810,13 @@ Dictionary Geometry2D::make_atlas(const Vector<Size2> &p_rects) {
::Geometry2D::make_atlas(rects, result, size);
Size2 r_size = size;
Vector<Point2> r_result;
for (int i = 0; i < result.size(); i++) {
r_result.push_back(result[i]);
}
ret["points"] = r_result;
ret["size"] = r_size;
ret["size"] = size;
return ret;
}