Commit 414dc787 authored by Rahix's avatar Rahix 🦀
Browse files

svg_loader: Panic if invalid colliders are found.

parent e019963f
......@@ -122,7 +122,7 @@ impl Collider {
"g[inkscape\\:groupmode=\"layer\"][inkscape\\:label=\"collider\"] rect",
);
if nodes.length() > 0 {
crate::console_warn!("Unknown elements in collider layer");
panic!("Unknown elements in collider layer! Only <circle /> and <rect /> are allowed right now.");
}
colliders
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment