diff options
author | Craig Robbins <kde.psych@gmail.com> | 2017-02-10 22:21:49 +1000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2017-02-10 22:21:49 +1000 |
commit | 7760948b7ca436ce0c7d26140dcd3867e81c99c9 (patch) | |
tree | e6c078cc3974376b88ba70262c57bbeb5356b98f | |
parent | 7bd3e2bceb45a371f3bc7029dbc7729cb3ce42fb (diff) | |
download | minetest-7760948b7ca436ce0c7d26140dcd3867e81c99c9.tar.gz minetest-7760948b7ca436ce0c7d26140dcd3867e81c99c9.tar.bz2 minetest-7760948b7ca436ce0c7d26140dcd3867e81c99c9.zip |
Revert "Plantlike: Fix visual_scale being applied squared (#5115)"
This reverts commit 953cbb3b15997a0e7c7c32af2365cb5046a9e476.
-rw-r--r-- | src/content_mapblock.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content_mapblock.cpp b/src/content_mapblock.cpp index 9923647bc..45822666f 100644 --- a/src/content_mapblock.cpp +++ b/src/content_mapblock.cpp @@ -1602,6 +1602,8 @@ void mapblock_mesh_generate_special(MeshMakeData *data, } for (int i = 0; i < 4; i++) { + vertices[i].Pos *= f.visual_scale; + vertices[i].Pos.Y += BS/2 * (f.visual_scale - 1); if (data->m_smooth_lighting) vertices[i].Color = blendLight(frame, vertices[i].Pos, tile.color); vertices[i].Pos += intToFloat(p, BS); |