From 3795677f3d85d0d5a741b9b040a423d8f3ad3569 Mon Sep 17 00:00:00 2001 From: Ninni Pipping Date: Wed, 22 Mar 2023 19:32:00 +0100 Subject: [PATCH] Make `Gradient` resort points on `reverse` --- scene/resources/gradient.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/resources/gradient.cpp b/scene/resources/gradient.cpp index 0209bf9aec6..eafc4bec7d0 100644 --- a/scene/resources/gradient.cpp +++ b/scene/resources/gradient.cpp @@ -153,6 +153,7 @@ void Gradient::reverse() { points.write[i].offset = 1.0 - points[i].offset; } + is_sorted = false; _update_sorting(); emit_signal(CoreStringNames::get_singleton()->changed); }