mirror of
https://github.com/godotengine/godot.git
synced 2025-01-30 21:33:18 +08:00
keep alpha when converting svg colors fixes #11289
This commit is contained in:
parent
dee1001390
commit
b3826901c7
@ -51,7 +51,7 @@ inline void change_nsvg_paint_color(NSVGpaint *p_paint, const uint32_t p_old, co
|
||||
|
||||
if (p_paint->type == NSVG_PAINT_COLOR) {
|
||||
if (p_paint->color << 8 == p_old << 8) {
|
||||
p_paint->color = p_new;
|
||||
p_paint->color = (p_paint->color & 0xFF000000) | (p_new & 0x00FFFFFF);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user