mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-10 21:19:10 -04:00
Make sure _globalMatrix is not set to false values in Item#rasterize().
This commit is contained in:
parent
ccfacf2484
commit
b2188be567
2 changed files with 9 additions and 2 deletions
src/project
|
@ -370,7 +370,12 @@ var Project = PaperScopeItem.extend(/** @lends Project# */{
|
|||
offset: new Point(0, 0),
|
||||
// A stack of concatenated matrices, to keep track of the current
|
||||
// global matrix, since Canvas is not able tell us (yet).
|
||||
transforms: [matrix]
|
||||
transforms: [matrix],
|
||||
// Tell the drawing routine that we want to track nested matrices
|
||||
// in param.transforms, and that we want it to set _globalMatrix
|
||||
// as used below. Item#rasterize() and Raster#getAverageColor() do
|
||||
// not need to set this.
|
||||
trackTransforms: true
|
||||
});
|
||||
for (var i = 0, l = this.layers.length; i < l; i++)
|
||||
this.layers[i].draw(ctx, param);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue