Make Gradient resort points on reverse

This commit is contained in:
Ninni Pipping 2023-03-22 19:32:00 +01:00
parent 0291fcd7b6
commit 3795677f3d

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