From 766b637ed030c06c99b60e843ea384b7b5f4d54c Mon Sep 17 00:00:00 2001 From: D00T24 Date: Wed, 5 Feb 2020 14:20:15 +0400 Subject: [PATCH] changed max point limit to 1 instead of 2 (cherry picked from commit bcc0493a4a1dcf0ba5ed5c34d0d0317d90dfd24c) --- scene/resources/gradient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/resources/gradient.cpp b/scene/resources/gradient.cpp index e88f52be2d4..c5681f9856c 100644 --- a/scene/resources/gradient.cpp +++ b/scene/resources/gradient.cpp @@ -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); }