diff options
author | Ninni Pipping <over999ships@gmail.com> | 2023-03-22 19:32:00 +0100 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-03-27 17:46:01 +0200 |
commit | fa9f92112cd6f33e8f4095a45aa0d9f07d540d28 (patch) | |
tree | b02089d452dca87cdd47e369791dfba8be2daefd /scene | |
parent | 9a3b52dc2d1591de7e2fcc537e5f230c28a84fb0 (diff) |
Make `Gradient` resort points on `reverse`
(cherry picked from commit 3795677f3d85d0d5a741b9b040a423d8f3ad3569)
Diffstat (limited to 'scene')
-rw-r--r-- | scene/resources/gradient.cpp | 1 |
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); } |