mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Do not delete bitmap resolution property when vector is edited because there are other things that still rely on it.
This commit is contained in:
parent
d5c91c3b41
commit
0156dd139d
1 changed files with 1 additions and 2 deletions
|
@ -614,7 +614,7 @@ class VirtualMachine extends EventEmitter {
|
|||
canvas.height = bitmap.height;
|
||||
const context = canvas.getContext('2d');
|
||||
context.putImageData(bitmap, 0, 0);
|
||||
|
||||
|
||||
// Divide by resolution because the renderer's definition of the rotation center
|
||||
// is the rotation center divided by the bitmap resolution
|
||||
this.runtime.renderer.updateBitmapSkin(
|
||||
|
@ -669,7 +669,6 @@ class VirtualMachine extends EventEmitter {
|
|||
// so the dataFormat should be 'svg'
|
||||
costume.dataFormat = storage.DataFormat.SVG;
|
||||
costume.md5 = `${costume.assetId}.${costume.dataFormat}`;
|
||||
delete costume.bitmapResolution;
|
||||
this.emitTargetsUpdate();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue