fix(editor): asset browser directory navigation

The file list was hardwired to the root directory, so it was always
empty (all assets live in subdirectories). Directories are now
selectable from both the tree (click row) and the list (click [D]
row), with a breadcrumb + Root button. Prefix check done manually
(path::starts_with is missing in this libstdc++).
This commit is contained in:
2026-10-04 00:55:19 +08:00
parent ab7a43a686
commit fd2d8f9b34
2 changed files with 60 additions and 5 deletions
+2
View File
@@ -31,6 +31,8 @@ private:
// 固定根(下标即身份):项目资产 / 场景文件
int m_Root = 0;
// 当前浏览目录(点目录树切换;列表显示这里的文件)
std::filesystem::path m_CurrentDir;
// 类型过滤(0 = All;其余见 kTypeNames)
int m_TypeFilter = 0;
// 名字子串过滤(空 = 不过滤)