From c53cb42e83d6bbeacdc11c37822cc9405697775a Mon Sep 17 00:00:00 2001 From: "kaile.yin" Date: Wed, 9 Jul 2014 14:25:51 +0800 Subject: [PATCH] fixed Armature blend func effect --- cocos/editor-support/cocostudio/CCArmature.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/editor-support/cocostudio/CCArmature.cpp b/cocos/editor-support/cocostudio/CCArmature.cpp index c7a465485c..d385cc1f4c 100644 --- a/cocos/editor-support/cocostudio/CCArmature.cpp +++ b/cocos/editor-support/cocostudio/CCArmature.cpp @@ -402,9 +402,9 @@ void Armature::draw(cocos2d::Renderer *renderer, const Mat4 &transform, uint32_t Skin *skin = static_cast(node); skin->updateTransform(); - bool blendDirty = bone->isBlendDirty(); + BlendFunc func = bone->getBlendFunc(); - if (blendDirty) + if (func.src != _blendFunc.src || func.dst != _blendFunc.dst) { skin->setBlendFunc(bone->getBlendFunc()); }