mirror of
https://github.com/minetest/minetest.git
synced 2024-11-10 01:33:46 +01:00
Add rotation for plantlike drawtype.
This commit is contained in:
parent
70074800a2
commit
9dc8901e32
@ -1119,12 +1119,12 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
|
||||
if(j == 0)
|
||||
{
|
||||
for(u16 i=0; i<4; i++)
|
||||
vertices[i].Pos.rotateXZBy(46);
|
||||
vertices[i].Pos.rotateXZBy(46 + n.param2);
|
||||
}
|
||||
else if(j == 1)
|
||||
{
|
||||
for(u16 i=0; i<4; i++)
|
||||
vertices[i].Pos.rotateXZBy(-44);
|
||||
vertices[i].Pos.rotateXZBy(-44 + n.param2);
|
||||
}
|
||||
|
||||
for(u16 i=0; i<4; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user