Skip to content

Commit

Permalink
插入结点时对CascadeColor和cascadeOpacity的优化 from cocos#640
Browse files Browse the repository at this point in the history
  • Loading branch information
gdtdftdqtd committed May 23, 2017
1 parent a0bcf7d commit c59c33c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cocos/2d/CCNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -974,12 +974,12 @@ void Node::postInsertChild(Node* child)

if (_cascadeColorEnabled)
{
updateCascadeColor();
child->updateCascadeColor();
}

if (_cascadeOpacityEnabled)
{
updateCascadeOpacity();
child->updateCascadeOpacity();
}
}

Expand Down

0 comments on commit c59c33c

Please sign in to comment.