From fa9f92112cd6f33e8f4095a45aa0d9f07d540d28 Mon Sep 17 00:00:00 2001 From: Ninni Pipping Date: Wed, 22 Mar 2023 19:32:00 +0100 Subject: Make `Gradient` resort points on `reverse` (cherry picked from commit 3795677f3d85d0d5a741b9b040a423d8f3ad3569) --- scene/resources/gradient.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'scene/resources') diff --git a/scene/resources/gradient.cpp b/scene/resources/gradient.cpp index 0209bf9aec..eafc4bec7d 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); } -- cgit v1.2.3