Merge pull request #75235 from AThousandShips/gradient_sort

Make `Gradient` resort points on `reverse`
This commit is contained in:
Yuri Sizov 2023-03-25 14:59:32 +01:00 committed by GitHub
commit 2be7a9be59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}