Moved model file loading logic to the editor code base
This commit is contained in:
@ -12,6 +12,7 @@
|
||||
#include "PropertyPanels/Inspector.h"
|
||||
#include "Project/ProjectInfo.h"
|
||||
#include "Runtime/RuntimeControls.h"
|
||||
#include "AssetManagement/uuid.h"
|
||||
#include "Project/Settings.h"
|
||||
#include "Console.h"
|
||||
|
||||
@ -26,21 +27,19 @@ public:
|
||||
std::string path = (std::filesystem::current_path()).string();
|
||||
project.setProjectDirectory(path);
|
||||
|
||||
AssetManager::Init();
|
||||
AssetManager::setAssetPath(project.GetProjectDirectory());
|
||||
AssetManager::BuildAssetView();
|
||||
|
||||
LoadLastOrEmptyProject();
|
||||
|
||||
ProjectInfo projectInfo(project);
|
||||
Viewport sceneview = Viewport(scene);
|
||||
//ProjectInfo projectInfo(project);
|
||||
RuntimeControls rc = RuntimeControls();
|
||||
|
||||
Viewport sceneview = Viewport(scene);
|
||||
SceneExplorer explorer(Selected, scene);
|
||||
Inspector inspector = Inspector(Selected);
|
||||
Settings settings = Settings();
|
||||
// AssetFinder assetsView = AssetFinder();
|
||||
Console console = Console();
|
||||
//Settings settings = Settings();
|
||||
AssetFinder assetsView = AssetFinder();
|
||||
//Console console = Console();
|
||||
|
||||
|
||||
Selected = YoggieEngine::Entity((entt::entity) -1, &scene);
|
||||
|
||||
double previous = glfwGetTime();
|
||||
@ -77,16 +76,18 @@ public:
|
||||
|
||||
}
|
||||
|
||||
projectInfo.Update();
|
||||
//projectInfo.Update();
|
||||
sceneview.Update();
|
||||
rc.Update();
|
||||
explorer.Update();
|
||||
settings.Update();
|
||||
//settings.Update();
|
||||
inspector.Update();
|
||||
console.Update();
|
||||
//console.Update();
|
||||
|
||||
ImGui::ShowDemoWindow();
|
||||
ImGui::ShowMetricsWindow();
|
||||
assetsView.Draw();
|
||||
|
||||
//ImGui::ShowDemoWindow();
|
||||
//ImGui::ShowMetricsWindow();
|
||||
|
||||
|
||||
GuiEnd();
|
||||
|
Reference in New Issue
Block a user