feat(new_editor): wire project, inspector, and viewport runtime
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user