Permalink
Browse files

Hotfix: 克隆图片类型节点的时候,由于self没有subChildren,导致clone异常终止。

加入条件判断已保证正常clone。
  • Loading branch information...
u0u0 committed Dec 1, 2016
1 parent 86e28e0 commit 3c8528a76b03fffb01e4cf5cfd39bd03819eb2bb
Showing with 1 addition and 1 deletion.
  1. +1 −1 quick/framework/cocos2dx/NodeEx.lua
@@ -501,7 +501,7 @@ function Node:copyClonedWidgetChildren_(node)
if cloneChild then
self:addChild(cloneChild)
end
if child.name then
if child.name and self.subChildren then
self.subChildren[child.name] = cloneChild
end
end

0 comments on commit 3c8528a

Please sign in to comment.