1
0
鏡像自 https://github.com/luanti-org/luanti.git 已同步 2025-11-05 01:35:29 +01:00

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
此提交包含在:
Vanessa Ezekowitz
2014-12-19 12:24:31 +10:00
提交者 Craig Robbins
父節點 7dbb3916cb
當前提交 0d55f43977

查看文件

@@ -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);
}