diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index 1a8f6cce1..9b6d709fc 100644 --- a/scene/gui/color_picker.cpp +++ b/scene/gui/color_picker.cpp @@ -208,12 +208,15 @@ void ColorPicker::_html_entered(const String &p_html) { return; } - float last_alpha = color.a; + Color previous_color = color; color = Color::html(p_html); if (!is_editing_alpha()) { - color.a = last_alpha; + color.a = previous_color.a; } + if (color == previous_color) { + return; + } if (!is_inside_tree()) { return; }