mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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) {
|
private int GetInt (Dictionary<String, Object> map, String name, int defaultValue) {
|
||||||
if (!map.ContainsKey(name))
|
if (!map.ContainsKey(name))
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
return (int)map[name];
|
return (int)(float)map[name];
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool GetBoolean (Dictionary<String, Object> map, String name, bool defaultValue) {
|
private bool GetBoolean (Dictionary<String, Object> map, String name, bool defaultValue) {
|
||||||
|
|||||||
@ -119,7 +119,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"events": {
|
"events": {
|
||||||
"behind": {},
|
"behind": { "int": 4 },
|
||||||
"headAttach": {},
|
"headAttach": {},
|
||||||
"headPop": {}
|
"headPop": {}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user