Răsfoiți Sursa

Merge pull request #79782 from guemax/remove-spaces-from-input-of-html-color-in-color-picker

Remove spaces from input of HTML color in color picker
Yuri Sizov 2 ani în urmă
părinte
comite
d06779cc07
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      scene/gui/color_picker.cpp

+ 1 - 1
scene/gui/color_picker.cpp

@@ -559,7 +559,7 @@ void ColorPicker::_html_submitted(const String &p_html) {
 	}
 
 	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()) {
 		color.a = previous_color.a;