Skip to content

[spine] 还没有开始播放动画, skeleton.setStartListener(callback) 事件监听就被触发了 #18647

Open
@finscn

Description

@finscn

Cocos Creator version

3.8.6

System information

wasm

Issue description

目前遇到这个 bug 的是 wasm版本 (web 和 小游戏)

设置 skeleton.setStartListener(callback) 后,
执行

 skeleton.clearAnimations();
 skeleton.setToSetupPose();

直接就 触发了 callback()
callback 里 拿到的 trackEntry.animation === null

Relevant error log output

No response

Steps to reproduce

.

Minimal reproduction project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugNeeds TriageNeeds to be assigned by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions