mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add block.get_textures
This commit is contained in:
parent
8302bfe98e
commit
1c4e13dc67
3 changed files with 24 additions and 1 deletions
|
|
@ -139,6 +139,8 @@ void ModelBatch::setTexture(const std::string& name,
|
|||
setTexture(atlas->getTexture());
|
||||
if (auto reg = atlas->getIf(name.substr(sep+1))) {
|
||||
region = *reg;
|
||||
} else {
|
||||
setTexture("blocks:notfound", varTextures);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue