Merge pull request #895 from zilongshanren/improve-editbox-robust

fix jsb ECS hirarchy not change issue
This commit is contained in:
pandamicro
2016-07-18 13:54:22 +08:00
committed by GitHub
+6 -2
View File
@@ -263,11 +263,15 @@ var BaseNode = cc.Class(/** @lends cc.Node# */{
this._localZOrder = value;
this._sgNode.zIndex = value;
if (!CC_JSB && this._parent) {
if(this._parent) {
this._parent._reorderChildDirty = true;
this._parent._delaySort();
cc.eventManager._setDirtyForNode(this);
if (!CC_JSB) {
cc.eventManager._setDirtyForNode(this);
}
}
}
}
},