Merge pull request #7332 from 2youyouo2/v3

fixed set color to parent, it will effect its children
This commit is contained in:
minggo 2014-07-08 10:26:58 +08:00
commit b583684d61
1 changed files with 0 additions and 2 deletions

View File

@ -303,12 +303,10 @@ void NodeReader::initNode(Node* node, const rapidjson::Value& json)
if(alpha != 255)
{
node->setOpacity(alpha);
node->setCascadeOpacityEnabled(true);
}
if(red != 255 || green != 255 || blue != 255)
{
node->setColor(Color3B(red, green, blue));
node->setCascadeColorEnabled(true);
}