From 99075ac6613096ad1958b97bb0f0e2b74889f32c Mon Sep 17 00:00:00 2001 From: datacrystals Date: Tue, 10 May 2022 22:17:49 +0000 Subject: [PATCH] Add Vert/Tex Count Displays (#162) --- .../GUI_Window_AssetExplorer/GUI_Window_AssetExplorer.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Core/Editor/Windows/GUI_Window_AssetExplorer/GUI_Window_AssetExplorer.cpp b/Source/Core/Editor/Windows/GUI_Window_AssetExplorer/GUI_Window_AssetExplorer.cpp index f36dd622e7..d1a92f662d 100644 --- a/Source/Core/Editor/Windows/GUI_Window_AssetExplorer/GUI_Window_AssetExplorer.cpp +++ b/Source/Core/Editor/Windows/GUI_Window_AssetExplorer/GUI_Window_AssetExplorer.cpp @@ -57,7 +57,12 @@ void Window_AssetExplorer::Draw() { std::string Type = SystemUtils_->ERS_IOSubsystem_->AssetIndexIOManager_->AssetTypeName_[Key]; std::string FileName = SystemUtils_->ERS_IOSubsystem_->AssetIndexIOManager_->AssetFileName_[Key]; if (Type == std::string("Model")) { - + + + std::string DisplayName; + if (FileName == "") { + DisplayName = std::to_string(Key); + } bool Selected = ImGui::Selectable(FileName.c_str(), Key == SelectedModelIndex_); if (Selected) {