mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-15 03:21:35 +08:00
[libgdx] Fixed reading dark colors from JSON.
This commit is contained in:
parent
01250b0491
commit
453b49f55d
@ -565,9 +565,9 @@ public class SkeletonJson extends SkeletonLoader {
|
||||
float nb = Integer.parseInt(color.substring(4, 6), 16) / 255f;
|
||||
float na = Integer.parseInt(color.substring(6, 8), 16) / 255f;
|
||||
color = nextMap.getString("dark");
|
||||
float nr2 = Integer.parseInt(color.substring(8, 10), 16) / 255f;
|
||||
float ng2 = Integer.parseInt(color.substring(10, 12), 16) / 255f;
|
||||
float nb2 = Integer.parseInt(color.substring(12, 14), 16) / 255f;
|
||||
float nr2 = Integer.parseInt(color.substring(0, 2), 16) / 255f;
|
||||
float ng2 = Integer.parseInt(color.substring(2, 4), 16) / 255f;
|
||||
float nb2 = Integer.parseInt(color.substring(4, 6), 16) / 255f;
|
||||
JsonValue curve = keyMap.get("curve");
|
||||
if (curve != null) {
|
||||
bezier = readCurve(curve, timeline, bezier, frame, 0, time, time2, r, nr, 1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user