Skip to content

Commit 6a204c1

Browse files
authored
Fix the issue on the web platform where attachmentVertices fails to retrieve properly after the attachment is set by another skeletonData. (#18890)
1 parent 14e5973 commit 6a204c1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

native/cocos/editor-support/spine-wasm/spine-skeleton-instance.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ void SpineSkeletonInstance::collectMeshData() {
294294
AttachmentVertices *attachmentVertices = nullptr;
295295
if (attachmentVerticesMap->containsKey(attachmentSlot)) {
296296
attachmentVertices = (*attachmentVerticesMap)[attachmentSlot];
297+
} else {
298+
// attachment set from other skeletonData
299+
attachmentVertices = getAttachmentVertices(attachmentSlot);
297300
}
298301
if (_userData.useSlotTexture && _slotTextureSet.containsKey(slot)) {
299302
auto info = _slotTextureSet[slot];

native/external-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"type": "github",
44
"owner": "cocos",
55
"name": "cocos-engine-external",
6-
"checkout": "v3.8.7-17"
6+
"checkout": "v3.8.7-18"
77
}
88
}

0 commit comments

Comments
 (0)