Skip to content

Commit

Permalink
Merge pull request #1114 from kchadha/fix-broken-bitmap-res
Browse files Browse the repository at this point in the history
Fix broken rotation center on vector sprites
  • Loading branch information
paulkaplan committed May 4, 2018
2 parents 1fcbbc2 + 0156dd1 commit 15db232
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/virtual-machine.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit 15db232

Please sign in to comment.