feat(new_editor): wire project, inspector, and viewport runtime

This commit is contained in:
2026-04-19 00:03:25 +08:00
parent 8257403036
commit a57b322bc7
168 changed files with 14829 additions and 2507 deletions

View File

@@ -48,8 +48,14 @@ void ProjectBrowserModel::RefreshAssetList() {
AssetEntry assetEntry = {};
assetEntry.itemId = BuildRelativeItemId(entry.path(), m_assetsRootPath);
assetEntry.absolutePath = entry.path();
assetEntry.nameWithExtension =
BuildAssetNameWithExtension(entry.path(), entry.is_directory());
assetEntry.displayName = BuildAssetDisplayName(entry.path(), entry.is_directory());
assetEntry.extensionLower = ToLowerCopy(PathToUtf8String(entry.path().extension()));
assetEntry.kind = ResolveItemKind(entry.path(), entry.is_directory());
assetEntry.directory = entry.is_directory();
assetEntry.canOpen = CanOpenItemKind(assetEntry.kind);
assetEntry.canPreview = CanPreviewItemKind(assetEntry.kind);
m_assetEntries.push_back(std::move(assetEntry));
}
}