changed max point limit to 1 instead of 2

(cherry picked from commit bcc0493a4a)
This commit is contained in:
D00T24 2020-02-05 14:20:15 +04:00 committed by Rémi Verschelde
parent d56112005f
commit 766b637ed0
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -131,7 +131,7 @@ void Gradient::add_point(float p_offset, const Color &p_color) {
void Gradient::remove_point(int p_index) {
ERR_FAIL_INDEX(p_index, points.size());
ERR_FAIL_COND(points.size() <= 2);
ERR_FAIL_COND(points.size() <= 1);
points.remove(p_index);
emit_signal(CoreStringNames::get_singleton()->changed);
}