mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
update 'overlay-texture' block property behaviour
This commit is contained in:
parent
4f377b2056
commit
9b5c693027
8 changed files with 44 additions and 16 deletions
|
|
@ -4,7 +4,7 @@
|
|||
#include "graphics/core/Atlas.hpp"
|
||||
#include "graphics/core/Texture.hpp"
|
||||
|
||||
util::TextureRegion util::getTextureRegion(
|
||||
util::TextureRegion util::get_texture_region(
|
||||
const Assets& assets, const std::string& name, const std::string& fallback
|
||||
) {
|
||||
size_t sep = name.find(':');
|
||||
|
|
@ -16,7 +16,7 @@ util::TextureRegion util::getTextureRegion(
|
|||
if (auto reg = atlas->getIf(name.substr(sep+1))) {
|
||||
return {atlas->getTexture(), *reg};
|
||||
} else if (!fallback.empty()){
|
||||
return util::getTextureRegion(assets, fallback, "");
|
||||
return util::get_texture_region(assets, fallback, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue