Asset explorer showing files
After loading a project the asset explorer now show all the project files.
This commit is contained in:
@ -36,6 +36,7 @@ public:
|
||||
double previous = glfwGetTime();
|
||||
double lag = 0.0;
|
||||
|
||||
AssetManager::Init();
|
||||
renderer->Prepare(activeRuntime.MainScene);
|
||||
|
||||
while (!mainWindow.WindowShouldClose())
|
||||
@ -139,6 +140,8 @@ public:
|
||||
switch (result) {
|
||||
case(NFD_OKAY):
|
||||
Project::LoadProject(path, activeRuntime.CurrentProject);
|
||||
AssetManager::setAssetPath(activeRuntime.CurrentProject.get()->GetProjectDirectory());
|
||||
AssetManager::BuildAssetView();
|
||||
break;
|
||||
case(NFD_CANCEL):
|
||||
break;
|
||||
@ -225,7 +228,7 @@ public:
|
||||
switch (result) {
|
||||
case(NFD_OKAY):
|
||||
// Import Model
|
||||
AssetManager::LoadFromSource(modelImportPath, ".");
|
||||
AssetManager::LoadFromSource(modelImportPath, activeRuntime.CurrentProject.get()->GetProjectDirectory() / "Assets");
|
||||
break;
|
||||
case(NFD_CANCEL):
|
||||
break;
|
||||
|
Reference in New Issue
Block a user