A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix(editor): refresh open skeletal scenes after source edits
yhheb0815eec968
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3b5763e15..87f03c9c9 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -22,6 +22,8 @@ published separately; it ships inside the editor.### Fixed+- **Open skeletal scenes refresh after source edits.** The editor tracks the skeleton, atlas and page paths resolved by its shared loaders. Changes to those inputs rebind the affected skeletal runtime in the current viewport; unrelated image edits do no skeletal work, and queued refreshes from a replaced scene are discarded.+- **Skeletal atlas edits invalidate resident textures.** Image changes also sever the bare-path residency used by skeletal atlas pages. Reopening a DragonBones scene loads the updated image instead of reviving stale pixels, while existing holders retain their texture until released.- **DragonBones atlas textures follow skeleton ownership.** Scene loading reuses a resident atlas page and transfers its reference to the skeleton that uses it. The last armature removal and manager disposal release the page; rejected armatures release otherwise unbound skeletons and uploads. Repeated editor scene switching no longer adds a new atlas texture on every load, while paused poses and device recovery continue drawing correctly.diff --git a/desktop b/desktopindex aae2680fc..242c26ef3 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit aae2680fc4d1d6dc61702552a66b697bf1135082+Subproject commit 242c26ef3d4abc7ffd11f132783d15d5f83621dfdiff --git a/sdk/src/dragonbones/loadDragonBonesScene.ts b/sdk/src/dragonbones/loadDragonBonesScene.tsindex 2c4c27bb6..027798885 100644--- a/sdk/src/dragonbones/loadDragonBonesScene.ts+++ b/sdk/src/dragonbones/loadDragonBonesScene.ts@@ -154,10 +154,10 @@ async function uploadAtlasImage_(const imagePath = slash >= 0 ? `${atlasLogical.substring(0, slash)}/${imageName}` : imageName;try {+ const staged = resolveRef(imagePath);const rm = requireResourceManager();const existing = typeof rm.acquireTextureByPath === 'function' ? rm.acquireTextureByPath(imagePath) : 0;if (existing) return { textureId: rm.getTextureGLId(existing), release: () => rm.releaseTexture(existing) };- const staged = resolveRef(imagePath);const page = await createAtlasPageTexture(staged,(p) => source.backend.fetchBinary(p),diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex a5af6d34f..11c1d051e 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -28,6 +28,8 @@ export const NOTES_FLOOR = 'v0.65.0';* the reader recognises anyway.*/export const NOTED = {+ 'fix(editor): refresh open skeletal scenes after source edits':+ { note: 'Open skeletal scenes refresh after source edits.' },'fix(asset): invalidate resident skeletal atlas images':{ note: 'Skeletal atlas edits invalidate resident textures.' },'fix(dragonbones): release atlas pages with their skeleton owners':