Browse Source

Merge pull request #15772 from godotengine/revert-15540-fix_color_to_html

Revert "Fix bad color to HTML conversion. Alpha channel was added before RGB."
Rémi Verschelde 7 years ago
parent
commit
3def642a15
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/color.cpp

+ 1 - 1
core/color.cpp

@@ -396,7 +396,7 @@ String Color::to_html(bool p_alpha) const {
 	txt += _to_hex(g);
 	txt += _to_hex(g);
 	txt += _to_hex(b);
 	txt += _to_hex(b);
 	if (p_alpha)
 	if (p_alpha)
-		txt += _to_hex(a);
+		txt = _to_hex(a) + txt;
 	return txt;
 	return txt;
 }
 }