Merge pull request from fsih/fixQuirksOnLoadCostume

Run quirks mode fixes on costumes loaded from sb2s
This commit is contained in:
DD Liu 2018-05-10 13:42:48 -04:00 committed by GitHub
commit 5c003641f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 40 additions and 5 deletions
src/engine

View file

@ -917,6 +917,14 @@ class Runtime extends EventEmitter {
this.renderer = renderer;
}
/**
* Set the svg adapter, which converts scratch 2 svgs to scratch 3 svgs
* @param {!SvgRenderer} svgAdapter The adapter to attach
*/
attachV2SVGAdapter (svgAdapter) {
this.v2SvgAdapter = svgAdapter;
}
/**
* Attach the storage module
* @param {!ScratchStorage} storage The storage module to attach