Replace error checks against size with is_empty
This commit is contained in:
parent
94dbf69f5d
commit
684752e75b
58 changed files with 116 additions and 116 deletions
|
|
@ -93,7 +93,7 @@ void Geometry2D::make_atlas(const Vector<Size2i> &p_rects, Vector<Point2i> &r_re
|
|||
// For example, it will prioritize a 1024x1024 atlas (works everywhere) instead of a
|
||||
// 256x8192 atlas (won't work anywhere).
|
||||
|
||||
ERR_FAIL_COND(p_rects.size() == 0);
|
||||
ERR_FAIL_COND(p_rects.is_empty());
|
||||
for (int i = 0; i < p_rects.size(); i++) {
|
||||
ERR_FAIL_COND(p_rects[i].width <= 0);
|
||||
ERR_FAIL_COND(p_rects[i].height <= 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue