mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add 'model-name' block property
This commit is contained in:
parent
64369fb189
commit
423ac2c44e
5 changed files with 23 additions and 17 deletions
|
|
@ -113,7 +113,7 @@ model::Model ModelsGenerator::generate(
|
|||
"blocks:" + blockDef.textureFaces.at(0), assets
|
||||
);
|
||||
} else if (blockDef.model == BlockModel::custom) {
|
||||
model = assets.require<model::Model>(blockDef.name+".model");
|
||||
model = assets.require<model::Model>(blockDef.modelName);
|
||||
for (auto& mesh : model.meshes) {
|
||||
mesh.scale(glm::vec3(0.3f));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue