cocos2d-x 3.15.1 创建帧动画有阴影

单独创建Sprite 看起来没有问题,但使用下面的方法看起来就有阴影,使用3.10版本相同的代码测试没有问题,希望能提供解决方案。
function display.newAnimation(frames,delay)
local animation=cc.Animation:create()
animation:setDelayPerUnit(delay)
table.sort(frames)
for i=1,#frames do
animation:addSpriteFrameWithFile(frames[i])
end
local animate=cc.Animate:create(animation)
return animate
end

下面是测试使用的图片test.zip (167.2 KB)

没人回复,自己顶下

一直没人理,不行只能换回老版本引擎了。

在线等,挺急的。

自己设置一个混合模式应该就好了

看上去是透明度预乘的问题,自己设置下blendfunc试试

谢谢各位指点,创建帧动画sprite以后需要设置混合模式。解决了。sprite:setBlendFunc(cc.blendFunc(gl.ONE,gl.ONE_MINUS_SRC_ALPHA))

修改源码 把混合的那几句删掉 或者自己封装一个