Respect _applyMatrix setting when calling #applyMatrix() in Group#_changed.

Required for Clip to work correctly.
This commit is contained in:
Jürg Lehni 2013-06-18 15:39:46 -07:00
parent 9633384122
commit f433423789

View file

@ -98,7 +98,8 @@ var Group = Item.extend(/** @lends Group# */{
_changed: function _changed(flags) {
_changed.base.call(this, flags);
if (flags & /*#=*/ ChangeFlag.HIERARCHY && !this._matrix.isIdentity()) {
if (flags & /*#=*/ ChangeFlag.HIERARCHY && this._applyMatrix
&& !this._matrix.isIdentity()) {
// Apply matrix now that we have content.
this.applyMatrix();
}