From db29ec79c1236298194eeba2774132f9618f0070 Mon Sep 17 00:00:00 2001 From: pandamicro Date: Fri, 13 Apr 2018 22:53:23 +0800 Subject: [PATCH] Fix render component chain not updated for one child --- cocos2d/core/CCNode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2d/core/CCNode.js b/cocos2d/core/CCNode.js index 76afc5fc72..147c2f80fe 100644 --- a/cocos2d/core/CCNode.js +++ b/cocos2d/core/CCNode.js @@ -2453,9 +2453,9 @@ var Node = cc.Class({ } _children[j + 1] = child; } - hierarchyChain.rebuild(this); this.emit(CHILD_REORDER); } + hierarchyChain.rebuild(this); cc.director.__fastOff(cc.Director.EVENT_AFTER_UPDATE, this.sortAllChildren, this); } },