mirror of https://github.com/axmolengine/axmol.git
fixed set blend func
This commit is contained in:
parent
f998ea058a
commit
7177866331
|
@ -249,7 +249,7 @@ void Bone::applyParentTransform(Bone *parent)
|
||||||
|
|
||||||
void CCBone::setBlendFunc(const BlendFunc& blendFunc)
|
void CCBone::setBlendFunc(const BlendFunc& blendFunc)
|
||||||
{
|
{
|
||||||
if (_blendFunc.src != blendFunc.src && _blendFunc.dst != blendFunc.dst)
|
if (_blendFunc.src != blendFunc.src || _blendFunc.dst != blendFunc.dst)
|
||||||
{
|
{
|
||||||
_blendFunc = blendFunc;
|
_blendFunc = blendFunc;
|
||||||
_blendDirty = true;
|
_blendDirty = true;
|
||||||
|
|
Loading…
Reference in New Issue