mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Pass in argument to indicate compat mode
This commit is contained in:
parent
ea87d92245
commit
78e17b4842
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