mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Merge pull request #729 from sapics/item-matrix
setMatrix of item makes more useful
This commit is contained in:
commit
4cdc572824
1 changed files with 2 additions and 2 deletions
|
@ -1128,9 +1128,9 @@ var Item = Base.extend(Emitter, /** @lends Item# */{
|
|||
return this._matrix;
|
||||
},
|
||||
|
||||
setMatrix: function(matrix) {
|
||||
setMatrix: function() {
|
||||
// Use Matrix#initialize to easily copy over values.
|
||||
this._matrix.initialize(matrix);
|
||||
this._matrix.initialize.apply(this._matrix, arguments);
|
||||
if (this._applyMatrix) {
|
||||
// Directly apply the internal matrix. This will also call
|
||||
// _changed() for us.
|
||||
|
|
Loading…
Reference in a new issue