mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Fix bad color to HTML conversion. Alpha channel was added befor RGB.
This commit is contained in:
parent
c037f6339f
commit
19915d674c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user