Canvas: reduce SVG console spam
Ignore certain standard elements added by Sodipodi / Inkscape, to reduce console spam loading SVGs.
This commit is contained in:
parent
459dea77e5
commit
312822e4b0
1 changed files with 6 additions and 0 deletions
|
@ -603,6 +603,12 @@ var parsesvg = func(group, path, options = nil)
|
|||
}
|
||||
stack[-1].setFile(ref);
|
||||
}
|
||||
elsif (name == "sodipodi:namedview" or name == "metadata")
|
||||
{
|
||||
# silently skip these
|
||||
skip = level;
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
logpr(LOG_INFO, "Skipping unknown element '" ~ name ~ "'");
|
||||
|
|
Loading…
Add table
Reference in a new issue