fix: picked color is incorrect when enableColorCorrection=true

This commit is contained in:
mob-sakai
2026-11-25 21:16:50 +09:00
parent 587ff28e91
commit 8d906a7836
@@ -525,7 +525,7 @@ namespace Coffee.UIEffects.Editors
var colorValue = EditorGUI.ColorField(colorRect, label, color.colorValue, true, showAlpha, hdr); var colorValue = EditorGUI.ColorField(colorRect, label, color.colorValue, true, showAlpha, hdr);
if (EditorGUI.EndChangeCheck()) if (EditorGUI.EndChangeCheck())
{ {
color.colorValue = colorValue; color.colorValue = UIEffectProjectSettings.enableColorCorrection ? colorValue : colorValue.gamma;
} }
if (GUI.Button(pasteRect, s_PasteColorContent, "IconButton")) if (GUI.Button(pasteRect, s_PasteColorContent, "IconButton"))