mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-12-01 10:12:38 +08:00
fix: picked color is incorrect when enableColorCorrection=true
This commit is contained in:
@@ -525,7 +525,7 @@ namespace Coffee.UIEffects.Editors
|
||||
var colorValue = EditorGUI.ColorField(colorRect, label, color.colorValue, true, showAlpha, hdr);
|
||||
if (EditorGUI.EndChangeCheck())
|
||||
{
|
||||
color.colorValue = colorValue;
|
||||
color.colorValue = UIEffectProjectSettings.enableColorCorrection ? colorValue : colorValue.gamma;
|
||||
}
|
||||
|
||||
if (GUI.Button(pasteRect, s_PasteColorContent, "IconButton"))
|
||||
|
||||
Reference in New Issue
Block a user