mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
small fix
This commit is contained in:
parent
cc5784c878
commit
a34fff3515
1 changed files with 3 additions and 0 deletions
|
|
@ -211,6 +211,9 @@ bool AssetsLoader::loadExternalTexture(
|
|||
const std::string& name,
|
||||
std::vector<std::filesystem::path> alternatives
|
||||
) {
|
||||
if (assets->getTexture(name) != nullptr) {
|
||||
return true;
|
||||
}
|
||||
for (auto& path : alternatives) {
|
||||
if (fs::exists(path)) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue