Fix: Missing essentials path in internal assets function

This commit is contained in:
2023-02-21 08:42:02 -05:00
parent 2fef2f707a
commit b5fa180d5d

View File

@@ -214,6 +214,9 @@ std::string AssetLibraryService::root_path_from_library_ref(
if (ELEM(library_reference.type, ASSET_LIBRARY_ALL, ASSET_LIBRARY_LOCAL)) {
return "";
}
if (ELEM(library_reference.type, ASSET_LIBRARY_ESSENTIALS)) {
return essentials_directory_path();
}
bUserAssetLibrary *custom_library = find_custom_asset_library_from_library_ref(
library_reference);