From 2ef29d35bdbbd89b6482983d17c2ccb2ed9cc1ca Mon Sep 17 00:00:00 2001 From: "R. K" Date: Fri, 5 Oct 2018 08:15:41 +0200 Subject: [PATCH] Fix to ColorPicker behaviour when entering html. --- scene/gui/color_picker.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index 03eee9c6d89..c5d3def4c17 100644 --- a/scene/gui/color_picker.cpp +++ b/scene/gui/color_picker.cpp @@ -159,7 +159,10 @@ void ColorPicker::_html_entered(const String &p_html) { if (updating) return; + float last_alpha = color.a; color = Color::html(p_html); + if (!is_editing_alpha()) + color.a = last_alpha; if (!is_inside_tree()) return;