Added a few thing , and started simplifying renderer
- Added context menu to Inspector - Added check to see if project path exists. - Simplifying the renderer design
This commit is contained in:
@ -16,6 +16,10 @@ public:
|
||||
AssetFinder () : EditorWindow("Assets") {}
|
||||
AssetFinder(const std::filesystem::path& projectdirectory) : EditorWindow("Assets")
|
||||
{
|
||||
assetIcon = YoggieEngine::Texture("rsc/AssetIcon.png");
|
||||
|
||||
spdlog::info("asset iconID: {0}", assetIcon.GetID());
|
||||
|
||||
for (auto& dir_entry : std::filesystem::directory_iterator(projectdirectory)) {
|
||||
auto filepath = dir_entry.path();
|
||||
|
||||
@ -39,7 +43,6 @@ public:
|
||||
spdlog::info("Created asset: {0}", asset.GetName());
|
||||
files.push_back(asset);
|
||||
|
||||
assetIcon = YoggieEngine::Texture("rsc/AssetIcon.png");
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user