1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Fix to ColorPicker behaviour when entering html.

This commit is contained in:
R. K
2018-10-05 08:15:41 +02:00
committed by R.K
parent 8068d0217a
commit 2ef29d35bd

View File

@@ -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;