1000th commit! 🎉 - Added .Mesh thumbnail preview + outlines now scales with resolution scaling

This commit is contained in:
Antoine Pilote
2024-08-28 01:03:49 -04:00
parent a285fbb61c
commit 5d5e3e33d0
5 changed files with 49 additions and 1 deletions

View File

@@ -365,6 +365,14 @@ namespace Nuake
textureImage = image;
}
}
else if (fileType == FileType::Mesh)
{
auto image = ThumbnailManager::Get().GetThumbnail(file->GetRelativePath());
if (image)
{
textureImage = image;
}
}
ImGui::SetCursorPos(prevCursor);
ImGui::Image(reinterpret_cast<ImTextureID>(textureImage->GetID()), ImVec2(100, 100), ImVec2(0, 1), ImVec2(1, 0));