Skip to content
Snippets Groups Projects
Commit 8c3da821 authored by Gabriel Martinez's avatar Gabriel Martinez Committed by Matthew Hall
Browse files

Properly parse object types (#21)

The attribute is called "type" but we were previously looking for
"obj_type".
parent 8b31315a
No related branches found
No related tags found
No related merge requests found
......@@ -447,7 +447,7 @@ impl Object {
optionals: [("id", id, |v:String| v.parse().ok()),
("gid", gid, |v:String| v.parse().ok()),
("name", name, |v:String| v.parse().ok()),
("obj_type", obj_type, |v:String| v.parse().ok()),
("type", obj_type, |v:String| v.parse().ok()),
("width", width, |v:String| v.parse().ok()),
("height", height, |v:String| v.parse().ok()),
("visible", visible, |v:String| v.parse().ok())],
......
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