mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[c] Closes #2216, assign alpha if not given.
This commit is contained in:
parent
c216384963
commit
59dbba3e31
@ -106,6 +106,7 @@ static void toColor2(spColor *color, const char *value, int /*bool*/ hasAlpha) {
|
|||||||
color->g = toColor(value, 1);
|
color->g = toColor(value, 1);
|
||||||
color->b = toColor(value, 2);
|
color->b = toColor(value, 2);
|
||||||
if (hasAlpha) color->a = toColor(value, 3);
|
if (hasAlpha) color->a = toColor(value, 3);
|
||||||
|
else color->a =1.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user