2
0
Fork 0

Merge pull request #35924 from doot24/fix_#35863

Fixed Gradient.remove_point not allowing fewer than two points.
4.0
Rémi Verschelde 2020-09-27 09:51:24 +07:00 committed by GitHub
commit 5e9194086d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -129,7 +129,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);
}