From f8977089c6c809759c3593c04830304146affad3 Mon Sep 17 00:00:00 2001 From: Yan Pujante Date: Sun, 19 Feb 2023 09:53:58 -0800 Subject: [PATCH] fixed color undo --- src/cpp/re/edit/Color.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/cpp/re/edit/Color.cpp b/src/cpp/re/edit/Color.cpp index 5527bd8..b938122 100644 --- a/src/cpp/re/edit/Color.cpp +++ b/src/cpp/re/edit/Color.cpp @@ -43,10 +43,7 @@ void Color3::editView(AppContext &iCtx) if(ReGui::ColorEdit(fName, &editedValue)) { - updateAttribute([this, &editedValue] { - fValue = editedValue; - fProvided = true; - }); + mergeUpdate(editedValue); } }