mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
LMPacker fix
This commit is contained in:
parent
a6a1e7866a
commit
1cf4cb727f
3 changed files with 6 additions and 5 deletions
|
|
@ -68,7 +68,7 @@ Atlas* AtlasBuilder::build(uint extrusion) {
|
|||
vector<rectangle> rects = packer.getResult();
|
||||
for (uint i = 0; i < entries.size(); i++) {
|
||||
const rectangle& rect = rects[i];
|
||||
const atlasentry& entry = entries[i];
|
||||
const atlasentry& entry = entries[rect.idx];
|
||||
uint x = rect.x;
|
||||
uint y = rect.y;
|
||||
uint w = rect.width;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue