mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -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.
|
// in _bounds and transform each.
|
||||||
for (var key in bounds) {
|
for (var key in bounds) {
|
||||||
var rect = bounds[key];
|
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 we have cached 'bounds', update _position again
|
||||||
if (key == 'bounds')
|
if (key == 'bounds')
|
||||||
this._position = rect.getCenter(true);
|
this._position = rect.getCenter(true);
|
||||||
|
bounds[key] = matrix._transformBounds(rect, rect);
|
||||||
}
|
}
|
||||||
} else if (position) {
|
} else if (position) {
|
||||||
// Transform position as well.
|
// Transform position as well.
|
||||||
|
|
Loading…
Reference in a new issue