mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-07 04:24:09 +00:00
Merge pull request #15540 from robfram/fix_color_to_html
Fix bad color to HTML conversion. Alpha channel was added before RGB.
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user