fix gradient loading not clearing previous points

issue #2765
This commit is contained in:
tildearrow 2026-01-09 04:23:02 -05:00
parent d281d1a4fa
commit 7617036eba
2 changed files with 3 additions and 0 deletions

View file

@ -197,6 +197,8 @@ const char* aboutLine[]={
"@party",
_N("all members of Deflers of Noice!"),
"",
_N("FUCKINGS TO: gearhead 😴"),
"",
_N("copyright © 2021-2025 tildearrow"),
_N("(and contributors)."),
#ifdef FURNACE_GPL3

View file

@ -67,6 +67,7 @@ bool Gradient2D::fromString(String val) {
bgColor=ImGui::ColorConvertU32ToFloat4(bgColorH);
points.clear();
for (size_t i=2; i<split.size(); i++) {
Gradient2DPoint point;
ImU32 colorH=0;