mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add fragment.crop, fragment:crop() & fix fragments rotation when width is not equal to depth & fix extra structures placements
This commit is contained in:
parent
44eedadc06
commit
48143c5a2b
13 changed files with 93 additions and 20 deletions
|
|
@ -145,6 +145,9 @@ static std::vector<std::unique_ptr<VoxelStructure>> load_structures(
|
|||
}
|
||||
auto fragment = std::make_unique<VoxelFragment>();
|
||||
fragment->deserialize(files::read_binary_json(structFile));
|
||||
logger.info() << "fragment " << name << " has size [" <<
|
||||
fragment->getSize().x << ", " << fragment->getSize().y << ", " <<
|
||||
fragment->getSize().z << "]";
|
||||
|
||||
structures.push_back(std::make_unique<VoxelStructure>(
|
||||
load_structure_meta(name, config),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue