diff --git a/src/port/Game.cpp b/src/port/Game.cpp index 34568295b..cc74f983c 100644 --- a/src/port/Game.cpp +++ b/src/port/Game.cpp @@ -382,7 +382,6 @@ void CM_DrawActors(Camera* camera, struct Actor* actor) { } void CM_DrawStaticMeshActors() { - printf("DRAW\n"); gWorldInstance.DrawStaticMeshActors(); } diff --git a/src/port/ui/ContentBrowser.cpp b/src/port/ui/ContentBrowser.cpp index 5e632b5fc..a43519524 100644 --- a/src/port/ui/ContentBrowser.cpp +++ b/src/port/ui/ContentBrowser.cpp @@ -60,7 +60,7 @@ namespace Editor { } void ContentBrowserWindow::FindContent() { - std::list myList = {"objects/*"}; + std::list myList = {"tracks/*", "actors/*", "objects/*"}; std::list myList2 = {""}; Content.clear(); @@ -74,8 +74,11 @@ namespace Editor { } else if (file.size() >= 6 && file.substr(file.size() - 6, 5) == "_tri_" && isdigit(file.back())) { // ends with _tri_# continue; - } else if (file.size() >= 6 && file.substr(file.size() - 6, 5) == "_vtx_" && isdigit(file.back())) { - // ends with _vtx_# + } else if (file.find("_vtx_") != std::string::npos) { + // Has _vtx_ + continue; + } else if (file.find('.') != std::string::npos) { + // File has an extension continue; } @@ -84,4 +87,3 @@ namespace Editor { } } } -