Merge pull request #16094 from stevetranby/patch-1

Match parent's camera mask when adding child.
This commit is contained in:
minggo 2016-07-13 16:33:17 +08:00 committed by GitHub
commit 261f1ef780
1 changed files with 1 additions and 0 deletions

View File

@ -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 )
{