From 5aae024a7b226488166f73e5cb0914bd87a909da Mon Sep 17 00:00:00 2001 From: "kaile.yin" Date: Wed, 23 Jul 2014 15:21:20 +0800 Subject: [PATCH] fixed cannot set blendfunc to Armature --- cocos/editor-support/cocostudio/CCArmature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/editor-support/cocostudio/CCArmature.cpp b/cocos/editor-support/cocostudio/CCArmature.cpp index d385cc1f4c..e9c25af009 100644 --- a/cocos/editor-support/cocostudio/CCArmature.cpp +++ b/cocos/editor-support/cocostudio/CCArmature.cpp @@ -404,7 +404,7 @@ void Armature::draw(cocos2d::Renderer *renderer, const Mat4 &transform, uint32_t 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()); }