Pass in argument to indicate compat mode

This commit is contained in:
DD 2018-05-11 14:24:07 -04:00
parent ea87d92245
commit 78e17b4842

View file

@ -34,7 +34,7 @@ const loadCostumeFromAsset = function (costume, costumeAsset, runtime, optVersio
let svgString = costumeAsset.decodeText(); let svgString = costumeAsset.decodeText();
// SVG Renderer load fixes "quirks" associated with Scratch 2 projects // SVG Renderer load fixes "quirks" associated with Scratch 2 projects
if (optVersion && optVersion === 2 && runtime.v2SvgAdapter) { if (optVersion && optVersion === 2 && runtime.v2SvgAdapter) {
runtime.v2SvgAdapter.loadString(svgString); runtime.v2SvgAdapter.loadString(svgString, true /* fromVersion2 */);
svgString = runtime.v2SvgAdapter.toString(); svgString = runtime.v2SvgAdapter.toString();
// Put back into storage // Put back into storage
const storage = runtime.storage; const storage = runtime.storage;