mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Plantlike meshoptions: fix degrotate. (#4512)
This snuck in with the meshoptions patch and accidentally kills degrotate plants. Thanks to @hybriddog for finding this.
This commit is contained in:
parent
af4b63ff21
commit
d83bcf2c50
1 changed files with 1 additions and 1 deletions
|
@ -1138,7 +1138,7 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
|
|||
u8 p2mesh = 0;
|
||||
if (f.param_type_2 == CPT2_DEGROTATE)
|
||||
rotate_degree = n.param2 * 2;
|
||||
else if (f.param_type_2 != CPT2_MESHOPTIONS) {
|
||||
if (f.param_type_2 != CPT2_MESHOPTIONS) {
|
||||
if (j == 0) {
|
||||
for (u16 i = 0; i < 4; i++)
|
||||
vertices[i].Pos.rotateXZBy(46 + rotate_degree);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue