mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
Merge pull request #895 from zilongshanren/improve-editbox-robust
fix jsb ECS hirarchy not change issue
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user