mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +08:00
Fixed reading ints.
This commit is contained in:
parent
a7913e35ba
commit
58545382fc
@ -228,7 +228,7 @@ namespace Spine {
|
||||
private int GetInt (Dictionary<String, Object> map, String name, int defaultValue) {
|
||||
if (!map.ContainsKey(name))
|
||||
return defaultValue;
|
||||
return (int)map[name];
|
||||
return (int)(float)map[name];
|
||||
}
|
||||
|
||||
private bool GetBoolean (Dictionary<String, Object> map, String name, bool defaultValue) {
|
||||
|
||||
@ -119,7 +119,7 @@
|
||||
}
|
||||
},
|
||||
"events": {
|
||||
"behind": {},
|
||||
"behind": { "int": 4 },
|
||||
"headAttach": {},
|
||||
"headPop": {}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user