Skip to content

Commit 953cbb3

Browse files
paramatZeno-
authored andcommittedJan 28, 2017
Plantlike: Fix visual_scale being applied squared (#5115)
Visual_scale was applied twice to plantlike by accident sometime between 2011 and 2013, squaring the requested scale value. Visual_scale is correctly applied once in it's other uses in signlike and torchlike. Two lines of code are removed, they also had no effect for the vast majority of nodes with the default visual_scale of 1.0. The texture continues to have it's base at ground level.
1 parent b7a98e9 commit 953cbb3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

Diff for: ‎src/content_mapblock.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -1602,8 +1602,6 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
16021602
}
16031603

16041604
for (int i = 0; i < 4; i++) {
1605-
vertices[i].Pos *= f.visual_scale;
1606-
vertices[i].Pos.Y += BS/2 * (f.visual_scale - 1);
16071605
if (data->m_smooth_lighting)
16081606
vertices[i].Color = blendLight(frame, vertices[i].Pos, tile.color);
16091607
vertices[i].Pos += intToFloat(p, BS);

0 commit comments

Comments
 (0)
Please sign in to comment.