mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add BlockModel struct
This commit is contained in:
parent
718f5d1089
commit
20e3a961f9
12 changed files with 46 additions and 39 deletions
|
|
@ -32,7 +32,7 @@ std::unique_ptr<ImageData> BlocksPreview::draw(
|
|||
cache.getRegion(id, 4), cache.getRegion(id, 5)};
|
||||
|
||||
glm::vec3 offset(0.1f, 0.5f, 0.1f);
|
||||
switch (def.model) {
|
||||
switch (def.model.type) {
|
||||
case BlockModelType::NONE:
|
||||
// something went wrong...
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue