diff options
-rw-r--r-- | scene/resources/gradient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/gradient.cpp b/scene/resources/gradient.cpp index fe5a01886d..6373436762 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); } |