Fix animated textures playing too fast

This commit is contained in:
Thinkofname 2016-03-30 00:53:43 +01:00
parent 4fde9161fe
commit bb1f10dd1b
1 changed files with 1 additions and 1 deletions

View File

@ -853,7 +853,7 @@ impl TextureManager {
if let Some(val) = res.read().unwrap().open(plugin, &path) {
let meta: serde_json::Value = serde_json::from_reader(val).unwrap();
let animation = meta.find("animation").unwrap();
let frame_time = animation.find("frameTime").and_then(|v| v.as_i64()).unwrap_or(1);
let frame_time = animation.find("frametime").and_then(|v| v.as_i64()).unwrap_or(1);
let interpolate = animation.find("interpolate")
.and_then(|v| v.as_boolean())
.unwrap_or(false);