From 2f63b84d4721b8e95a9c6679c39e8b93e96a307b Mon Sep 17 00:00:00 2001 From: pandamicro Date: Wed, 30 May 2018 12:16:33 +0800 Subject: [PATCH] Fix parent setting not trigger world transform update issue (#2768) --- cocos2d/core/CCNode.js | 1 + 1 file changed, 1 insertion(+) diff --git a/cocos2d/core/CCNode.js b/cocos2d/core/CCNode.js index f40cb57339..88702308fd 100644 --- a/cocos2d/core/CCNode.js +++ b/cocos2d/core/CCNode.js @@ -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; },