diff options
author | Wuzzy <wuzzy2@mail.ru> | 2020-09-04 20:49:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 20:49:50 +0200 |
commit | b3ace8f19746b53f839e7b0bdff0843c83866f64 (patch) | |
tree | e11e64bfd4e8092c2f823f32d14121886ce42c79 /src | |
parent | 050964bed6005f8d816ddf362b9fc8675581d190 (diff) | |
download | minetest-b3ace8f19746b53f839e7b0bdff0843c83866f64.tar.gz minetest-b3ace8f19746b53f839e7b0bdff0843c83866f64.tar.bz2 minetest-b3ace8f19746b53f839e7b0bdff0843c83866f64.zip |
Scale inventory image for scaled allfaces nodes (#10225)
The inventory image size of the inventory image of nodes with drawtype allfaces (and related) is scaled as well if visual_scale is set (previously, the inventory image size was always the same)
Diffstat (limited to 'src')
-rw-r--r-- | src/client/wieldmesh.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/wieldmesh.cpp b/src/client/wieldmesh.cpp index a268895ed..285cc38e5 100644 --- a/src/client/wieldmesh.cpp +++ b/src/client/wieldmesh.cpp @@ -562,6 +562,8 @@ void getItemMesh(Client *client, const ItemStack &item, ItemMesh *result) // add overlays postProcessNodeMesh(mesh, f, false, false, nullptr, &result->buffer_colors, true); + if (f.drawtype == NDT_ALLFACES) + scaleMesh(mesh, v3f(f.visual_scale)); break; } case NDT_PLANTLIKE: { |