mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Remove inheritance of Item#applyMatrix setting again.
Implementation cannot be solved well, since hierarchy is not known at creation time of item.
This commit is contained in:
parent
80a725d08a
commit
36e3cbddf2
1 changed files with 0 additions and 6 deletions
|
@ -1991,16 +1991,10 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
|||
}
|
||||
}
|
||||
Base.splice(children, items, index, 0);
|
||||
var applyMatrix = this._applyMatrix;
|
||||
for (var i = 0, l = items.length; i < l; i++) {
|
||||
var item = items[i];
|
||||
item._parent = this;
|
||||
item._setProject(this._project, true);
|
||||
// Only pass on the applyMatrix setting if it's different
|
||||
// and the child has not its onw setting already.
|
||||
if (item._applyMatrix ^ applyMatrix
|
||||
&& !item.hasOwnProperty('_applyMatrix'))
|
||||
item.setApplyMatrix(applyMatrix);
|
||||
// Setting the name again makes sure all name lookup structures
|
||||
// are kept in sync.
|
||||
if (item._name)
|
||||
|
|
Loading…
Reference in a new issue