mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Setting a matrix on an item with #transformContent = true should immediately apply it.
This commit is contained in:
parent
73fe0899ae
commit
d6be004ee6
1 changed files with 2 additions and 0 deletions
|
@ -780,6 +780,8 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
|||
setMatrix: function(matrix) {
|
||||
// Use Matrix#initialize to easily copy over values.
|
||||
this._matrix.initialize(matrix);
|
||||
if (this._transformContent)
|
||||
this.applyMatrix(true);
|
||||
this._changed(/*#=*/ Change.GEOMETRY);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue