mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +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->b = toColor(value, 2);
|
||||
if (hasAlpha) color->a = toColor(value, 3);
|
||||
else color->a =1.0f;
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user