Merge pull request #1149 from fsih/compatMode

Pass in argument to indicate compat mode
This commit is contained in:
DD Liu 2018-05-21 15:03:27 -04:00 committed by GitHub
commit 8c0f5a71f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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