mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Bake in matrix changes if owner has #applyMatrix set.
This commit is contained in:
parent
d594b4264d
commit
73ef269f0f
1 changed files with 9 additions and 2 deletions
|
@ -100,8 +100,15 @@ var Matrix = Base.extend(/** @lends Matrix# */{
|
|||
},
|
||||
|
||||
_changed: function() {
|
||||
if (this._owner)
|
||||
this._owner._changed(/*#=*/ Change.GEOMETRY);
|
||||
var owner = this._owner;
|
||||
if (owner) {
|
||||
// If owner has #applyMatrix set, directly bake it in now.
|
||||
if (owner._applyMatrix) {
|
||||
owner.transform(null, true);
|
||||
} else {
|
||||
owner._changed(/*#=*/ Change.GEOMETRY);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue