mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-05 02:52:39 +08:00
Fix parent setting not trigger world transform update issue (#2768)
This commit is contained in:
@@ -1228,6 +1228,7 @@ var Node = cc.Class({
|
||||
if (this._parent) {
|
||||
this._parent._delaySort();
|
||||
}
|
||||
this._renderFlag |= RenderFlow.FLAG_WORLD_TRANSFORM;
|
||||
this._onHierarchyChangedBase(oldParent);
|
||||
cc._widgetManager._nodesOrderDirty = true;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user