Skip to content

Commit

Permalink
Fix visual_scale for plantlike nodes (again)
Browse files Browse the repository at this point in the history
fixes #1989

move the plant to the bottom of its node properly, without affecting its scale.  See isue #1989
  • Loading branch information
Vanessa Ezekowitz authored and Zeno- committed Dec 19, 2014
1 parent 7dbb391 commit 0d55f43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/content_mapblock.cpp
Expand Up @@ -1188,8 +1188,7 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
for (int i = 0; i < 4; i++)
{
vertices[i].Pos *= f.visual_scale;
if (f.visual_scale < 1)
vertices[i].Pos.Y -= BS/2 * (1 - f.visual_scale);
vertices[i].Pos.Y += BS/2 * (f.visual_scale - 1);
vertices[i].Pos += intToFloat(p, BS);
}

Expand Down

0 comments on commit 0d55f43

Please sign in to comment.