mirror of https://github.com/axmolengine/axmol.git
Merge pull request #16094 from stevetranby/patch-1
Match parent's camera mask when adding child.
This commit is contained in:
commit
261f1ef780
|
@ -948,6 +948,7 @@ void Node::addChildHelper(Node* child, int localZOrder, int tag, const std::stri
|
||||||
child->setName(name);
|
child->setName(name);
|
||||||
|
|
||||||
child->setParent(this);
|
child->setParent(this);
|
||||||
|
child->setCameraMask(getCameraMask());
|
||||||
|
|
||||||
if( _running )
|
if( _running )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue