projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dbb391
)
Fix visual_scale for plantlike nodes (again)
author
Vanessa Ezekowitz
<vanessaezekowitz@gmail.com>
Fri, 19 Dec 2014 02:24:31 +0000
(12:24 +1000)
committer
Craig Robbins
<kde.psych@gmail.com>
Fri, 19 Dec 2014 02:25:32 +0000
(12:25 +1000)
fixes #1989
move the plant to the bottom of its node properly, without affecting its scale. See isue #1989
src/content_mapblock.cpp
patch
|
blob
|
history
diff --git
a/src/content_mapblock.cpp
b/src/content_mapblock.cpp
index 165073e52664a883ff16b2b1ff6406f64eb6ded7..b84b69629d99082ad6cc490d3da65449e20be7a7 100644
(file)
--- 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);
}