diff --git a/cocos/spine/skeleton.ts b/cocos/spine/skeleton.ts index abca73ea1d..2672245c59 100644 --- a/cocos/spine/skeleton.ts +++ b/cocos/spine/skeleton.ts @@ -1589,7 +1589,7 @@ export class Skeleton extends UIRenderer { const socket = this._sockets[i]; if (socket.path && socket.target) { const boneIdx = this._cachedSockets.get(socket.path); - if (!boneIdx) { + if (boneIdx == null || boneIdx < 0) { error(`Skeleton data does not contain path ${socket.path}`); continue; }