fixed cannot set blendfunc to Armature

This commit is contained in:
kaile.yin 2014-07-23 15:21:20 +08:00
parent 6fe58b4153
commit 5aae024a7b
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ void Armature::draw(cocos2d::Renderer *renderer, const Mat4 &transform, uint32_t
BlendFunc func = bone->getBlendFunc(); BlendFunc func = bone->getBlendFunc();
if (func.src != _blendFunc.src || func.dst != _blendFunc.dst) if (func.src != BlendFunc::ALPHA_NON_PREMULTIPLIED.src || func.dst != BlendFunc::ALPHA_NON_PREMULTIPLIED.dst)
{ {
skin->setBlendFunc(bone->getBlendFunc()); skin->setBlendFunc(bone->getBlendFunc());
} }