Added some obvious errors explanations
This commit is contained in:
@@ -281,7 +281,7 @@ Vector2 Sprite::get_frame_coords() const {
|
||||
|
||||
void Sprite::set_vframes(int p_amount) {
|
||||
|
||||
ERR_FAIL_COND(p_amount < 1);
|
||||
ERR_FAIL_COND_MSG(p_amount < 1, "Amount of vframes cannot be smaller than 1.");
|
||||
vframes = p_amount;
|
||||
update();
|
||||
item_rect_changed();
|
||||
@@ -294,7 +294,7 @@ int Sprite::get_vframes() const {
|
||||
|
||||
void Sprite::set_hframes(int p_amount) {
|
||||
|
||||
ERR_FAIL_COND(p_amount < 1);
|
||||
ERR_FAIL_COND_MSG(p_amount < 1, "Amount of hframes cannot be smaller than 1.");
|
||||
hframes = p_amount;
|
||||
update();
|
||||
item_rect_changed();
|
||||
|
||||
Reference in New Issue
Block a user