diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2014-12-19 12:24:31 +1000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2014-12-19 12:25:32 +1000 |
commit | 0d55f43977080435c6e67a2851fb343dc65e153c (patch) | |
tree | d5bb031de0d9e862d30129318c71e60f723c1e82 | |
parent | 7dbb3916cbc7f8650664db327ae35d72d3a872fb (diff) | |
download | minetest-0d55f43977080435c6e67a2851fb343dc65e153c.tar.gz minetest-0d55f43977080435c6e67a2851fb343dc65e153c.tar.bz2 minetest-0d55f43977080435c6e67a2851fb343dc65e153c.zip |
Fix visual_scale for plantlike nodes (again)
fixes #1989
move the plant to the bottom of its node properly, without affecting its scale. See isue #1989
-rw-r--r-- | src/content_mapblock.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/content_mapblock.cpp b/src/content_mapblock.cpp index 165073e52..b84b69629 100644 --- a/src/content_mapblock.cpp +++ b/src/content_mapblock.cpp @@ -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); } |