summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorNinni Pipping <over999ships@gmail.com>2023-03-22 19:32:00 +0100
committerYuri Sizov <yuris@humnom.net>2023-03-27 17:46:01 +0200
commitfa9f92112cd6f33e8f4095a45aa0d9f07d540d28 (patch)
treeb02089d452dca87cdd47e369791dfba8be2daefd /scene
parent9a3b52dc2d1591de7e2fcc537e5f230c28a84fb0 (diff)
Make `Gradient` resort points on `reverse`
(cherry picked from commit 3795677f3d85d0d5a741b9b040a423d8f3ad3569)
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/gradient.cpp1
1 files changed, 1 insertions, 0 deletions
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);
}