diff --git a/cocos/2d/CCNode.cpp b/cocos/2d/CCNode.cpp index 7d93075de3..dc8c0f39e5 100644 --- a/cocos/2d/CCNode.cpp +++ b/cocos/2d/CCNode.cpp @@ -948,6 +948,7 @@ void Node::addChildHelper(Node* child, int localZOrder, int tag, const std::stri child->setName(name); child->setParent(this); + child->setCameraMask(getCameraMask()); if( _running ) {