Use Vector2i when returning atlas size in Geometry2D::make_atlas
This commit is contained in:
parent
908795301b
commit
700bb066e0
2 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue