mirror of
https://github.com/moparisthebest/minetest
synced 2024-11-17 23:05:07 -05:00
Bugfix in makeCuboid - apply rotations to all faces when 1 tile is given.
This commit is contained in:
parent
33ca115ae4
commit
70074800a2
@ -99,9 +99,9 @@ void makeCuboid(MeshCollector *collector, const aabb3f &box,
|
||||
video::S3DVertex(min.X,min.Y,min.Z, 0,0,-1, c, txc[20],txc[23]),
|
||||
};
|
||||
|
||||
for(int i = 0; i < tilecount; i++)
|
||||
for(int i = 0; i < 6; i++)
|
||||
{
|
||||
switch (tiles[i].rotation)
|
||||
switch (tiles[MYMIN(i, tilecount-1)].rotation)
|
||||
{
|
||||
case 0:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user