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): creating a folder/asset clears an active filter
yhhe3867b68c343
diff --git a/desktop/src/panels/ContentBrowser.tsx b/desktop/src/panels/ContentBrowser.tsxindex 77b78d243..38581272b 100644--- a/desktop/src/panels/ContentBrowser.tsx+++ b/desktop/src/panels/ContentBrowser.tsx@@ -704,7 +704,7 @@ export function ContentBrowser() {await window.estella.fs.mkdir(path);refreshFs();selectAsset(path);- startRename(path); // drop straight into rename, like UE5+ setQuery(""); setFilters(new Set()); startRename(path); // drop straight into rename, like UE5} catch (e) {Toasts.push(t('cb.newFolderFailed', { error: errMsg(e) }), 'error');}@@ -715,7 +715,7 @@ export function ContentBrowser() {const path = await ProjectStore.createSceneFile(cwd);refreshFs();selectAsset(path);- startRename(path); // drop into rename, like New Folder+ setQuery(""); setFilters(new Set()); startRename(path); // drop into rename, like New Folder} catch (e) {Toasts.push(t('cb.newSceneFailed', { error: errMsg(e) }), 'error');}@@ -726,7 +726,7 @@ export function ContentBrowser() {const path = await ProjectStore.createInputMapFile(cwd);refreshFs();selectAsset(path); // unified inspector opens the input-map editor- startRename(path);+ setQuery(""); setFilters(new Set()); startRename(path);} catch (e) {Toasts.push(t('cb.newInputMapFailed', { error: errMsg(e) }), 'error');}@@ -737,7 +737,7 @@ export function ContentBrowser() {const path = await ProjectStore.createLocaleTableFile(cwd);refreshFs();selectAsset(path);- startRename(path);+ setQuery(""); setFilters(new Set()); startRename(path);} catch (e) {Toasts.push(t('cb.newLocaleTableFailed', { error: errMsg(e) }), 'error');}diff --git a/desktop/src/panels/Outliner.tsx b/desktop/src/panels/Outliner.tsxindex 8d0168883..5d4da19d4 100644--- a/desktop/src/panels/Outliner.tsx+++ b/desktop/src/panels/Outliner.tsx@@ -407,6 +407,9 @@ export function Outliner() {for (let i = 2; existing.has(path); i++) path = joinFolder(parent, `New Folder ${i}`);SceneCommands.createFolder(path);if (into?.length) SceneCommands.moveToFolder(into, path);+ // Clear an active search so the new folder (and its rename box) isn't filtered+ // out — otherwise "New Folder" appears to do nothing.+ setQuery('');useOutliner.getState().expand([folderKey(path)]);setRenaming(folderKey(path));};