mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Cached bounds are no longer LinkedRectangles.
This commit is contained in:
parent
c552925426
commit
d2869cfd55
1 changed files with 1 additions and 2 deletions
|
@ -1849,11 +1849,10 @@ function(name) {
|
|||
// in _bounds and transform each.
|
||||
for (var key in bounds) {
|
||||
var rect = bounds[key];
|
||||
// Transform without notifying the item of changes
|
||||
bounds[key] = matrix._transformBounds(rect, rect, true);
|
||||
// If we have cached 'bounds', update _position again
|
||||
if (key == 'bounds')
|
||||
this._position = rect.getCenter(true);
|
||||
bounds[key] = matrix._transformBounds(rect, rect);
|
||||
}
|
||||
} else if (position) {
|
||||
// Transform position as well.
|
||||
|
|
Loading…
Reference in a new issue