mirror of https://github.com/axmolengine/axmol.git
fixed #1664:fixed a logical error in CCAtlasNode::setOpacityModifyRGB()
This commit is contained in:
parent
56382ec753
commit
6379b61400
|
@ -179,9 +179,9 @@ void CCAtlasNode::setOpacity(GLubyte opacity)
|
|||
|
||||
void CCAtlasNode::setOpacityModifyRGB(bool bValue)
|
||||
{
|
||||
ccColor3B oldColor = this->m_tColor;
|
||||
ccColor3B oldColor = this->getColor();
|
||||
m_bIsOpacityModifyRGB = bValue;
|
||||
this->m_tColor = oldColor;
|
||||
this->setColor(oldColor);
|
||||
}
|
||||
|
||||
bool CCAtlasNode::isOpacityModifyRGB()
|
||||
|
|
Loading…
Reference in New Issue