mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Merge pull request #1149 from fsih/compatMode
Pass in argument to indicate compat mode
This commit is contained in:
commit
8c0f5a71f0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue