Pārlūkot izejas kodu

Fix bad color to HTML conversion. Alpha channel was added befor RGB.

robfram 7 gadi atpakaļ
vecāks
revīzija
19915d674c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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(b);
 	if (p_alpha)
-		txt = _to_hex(a) + txt;
+		txt += _to_hex(a);
 	return txt;
 }