Skip to content

Commit 0d55f43

Browse files
Vanessa EzekowitzZeno-
Vanessa Ezekowitz
authored andcommittedDec 19, 2014
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
1 parent 7dbb391 commit 0d55f43

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/content_mapblock.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1188,8 +1188,7 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
11881188
for (int i = 0; i < 4; i++)
11891189
{
11901190
vertices[i].Pos *= f.visual_scale;
1191-
if (f.visual_scale < 1)
1192-
vertices[i].Pos.Y -= BS/2 * (1 - f.visual_scale);
1191+
vertices[i].Pos.Y += BS/2 * (f.visual_scale - 1);
11931192
vertices[i].Pos += intToFloat(p, BS);
11941193
}
11951194

0 commit comments

Comments
 (0)
Please sign in to comment.