Skip to content

Commit cc21ff3

Browse files
Joshua Mengminggo
authored andcommitted
Issue #16188: Fix lua-script Sprite:playAnimationOnce(animation, args) blink bug (#17583)
1 parent 6e718ca commit cc21ff3

File tree

1 file changed

+1
-1
lines changed
  • cocos/scripting/lua-bindings/script/framework/extends

1 file changed

+1
-1
lines changed

cocos/scripting/lua-bindings/script/framework/extends/SpriteEx.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ local Sprite = cc.Sprite
2727
function Sprite:playAnimationOnce(animation, args)
2828
local actions = {}
2929

30-
local showDelay = args.showDelay or 0
30+
local showDelay = args.showDelay
3131
if showDelay then
3232
self:setVisible(false)
3333
actions[#actions + 1] = cc.DelayTime:create(showDelay)

0 commit comments

Comments
 (0)