mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fix problem in Item#rasterize(resolution) where rasterizing the active layer caused the resulting Raster to be positioned wrongly.
This commit is contained in:
parent
a58bbaf6cf
commit
e82a838085
1 changed files with 1 additions and 2 deletions
|
@ -677,8 +677,7 @@ var Item = this.Item = Base.extend(/** @lends Item# */{
|
|||
matrix.applyToContext(ctx);
|
||||
this.draw(ctx, {});
|
||||
var raster = new Raster(canvas);
|
||||
raster.setPosition(this.getPosition());
|
||||
raster.scale(1 / scale);
|
||||
raster.setBounds(bounds);
|
||||
return raster;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue