diff --git a/native/cocos/editor-support/spine-wasm/spine-skeleton-instance.cpp b/native/cocos/editor-support/spine-wasm/spine-skeleton-instance.cpp index d9bcbe5fff..aa45c6d3f3 100644 --- a/native/cocos/editor-support/spine-wasm/spine-skeleton-instance.cpp +++ b/native/cocos/editor-support/spine-wasm/spine-skeleton-instance.cpp @@ -751,7 +751,19 @@ void SpineSkeletonInstance::resizeSlotRegion(const spine::String &slotName, uint releaseSlotCacheInfo(cacheInfo); } _slotTextureSet.put(slot, info); + + auto &bones = _skeleton->getBones(); + const size_t boneCount = bones.size(); + std::vector activeBackup(boneCount); + for (size_t i = 0; i < boneCount; ++i) { + activeBackup[i] = bones[i]->isActive(); + } + _skeleton->updateCache(); + + for (size_t i = 0; i < boneCount; ++i) { + bones[i]->setActive(activeBackup[i]); + } } void SpineSkeletonInstance::setSlotTexture(const spine::String &slotName, const spine::String& textureUuid) { diff --git a/native/external-config.json b/native/external-config.json index 4c71eec33d..83016aa7a5 100644 --- a/native/external-config.json +++ b/native/external-config.json @@ -3,6 +3,6 @@ "type": "github", "owner": "cocos", "name": "cocos-engine-external", - "checkout": "v4.0.0-9" + "checkout": "v4.0.0-10" } } \ No newline at end of file