mirror of https://github.com/axmolengine/axmol.git
Merge pull request #7356 from 2youyouo2/v3
fixed Armature blend func effect
This commit is contained in:
commit
7d74be3158
|
@ -402,9 +402,9 @@ void Armature::draw(cocos2d::Renderer *renderer, const Mat4 &transform, uint32_t
|
|||
Skin *skin = static_cast<Skin *>(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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue