mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
Fix issues with multiple instances of symbols appearing in the wrong positions.
This was caused by cached bounds rectangles being modified elsewhere.
This commit is contained in:
parent
2280c0cb94
commit
b832787f7f
1 changed files with 3 additions and 1 deletions
|
@ -618,7 +618,9 @@ function(name) {
|
|||
if (cache) {
|
||||
if (!this._bounds)
|
||||
this._bounds = {};
|
||||
this._bounds[cache] = bounds;
|
||||
// Put a separate instance into the cache, so modifications of the
|
||||
// returned one won't affect it.
|
||||
this._bounds[cache] = bounds.clone();
|
||||
}
|
||||
return bounds;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue