Merge pull request #1230 from manongjohn/fix_svg_browser_import

Fix SVG import from Browser
This commit is contained in:
manongjohn 2023-10-07 21:46:52 -04:00 committed by GitHub
commit 73e924ca86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -959,7 +959,8 @@ TXshLevel *loadLevel(ToonzScene *scene,
std::string format = actualPath.getType();
if (format == "tzp" || format == "tzu") convertingPopup->show();
if (fIds.size() != 0 && doesFileActuallyExist)
// SVGs are treated as PLI. Ignore the fIds lists
if (format != "svg" && fIds.size() != 0 && doesFileActuallyExist)
xl = scene->loadLevel(actualPath, rd.m_options ? &*rd.m_options : 0,
levelName, fIds);
else