Remove spaces from input of HTML color in color picker

Fixes #79338
This commit is contained in:
guemax 2023-07-22 12:11:28 +02:00
parent 6588a4a29a
commit d934d00828
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ void ColorPicker::_html_submitted(const String &p_html) {
} }
const Color previous_color = color; const Color previous_color = color;
color = Color::from_string(p_html, previous_color); color = Color::from_string(p_html.strip_edges(), previous_color);
if (!is_editing_alpha()) { if (!is_editing_alpha()) {
color.a = previous_color.a; color.a = previous_color.a;