Skip to content
Snippets Groups Projects
Commit 2301c8a9 authored by Frizi's avatar Frizi
Browse files

Correct offset attribvute name in image layer

parent aa191f82
No related branches found
No related tags found
No related merge requests found
...@@ -575,8 +575,8 @@ impl ImageLayer { ...@@ -575,8 +575,8 @@ impl ImageLayer {
attrs, attrs,
optionals: [("opacity", opacity, |v:String| v.parse().ok()), optionals: [("opacity", opacity, |v:String| v.parse().ok()),
("visible", visible, |v:String| v.parse().ok().map(|x:i32| x == 1)), ("visible", visible, |v:String| v.parse().ok().map(|x:i32| x == 1)),
("offset_x", offset_x, |v:String| v.parse().ok()), ("offsetx", offset_x, |v:String| v.parse().ok()),
("offset_y", offset_y, |v:String| v.parse().ok())], ("offsety", offset_y, |v:String| v.parse().ok())],
required: [("name", name, |v| Some(v))], required: [("name", name, |v| Some(v))],
TiledError::MalformedAttributes("layer must have a name".to_string())); TiledError::MalformedAttributes("layer must have a name".to_string()));
let mut properties = HashMap::new(); let mut properties = HashMap::new();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment