diff options
author | number Zero <silverunicorn2011@yandex.ru> | 2017-01-25 00:33:01 +0300 |
---|---|---|
committer | Auke Kok <sofar@foo-projects.org> | 2017-01-24 13:59:40 -0800 |
commit | 33e0eedbfb116111fa79cbc506d9e94ffbb1543b (patch) | |
tree | 9ebe88fdaa5b21569a95a700315e62951be16aa0 /src/mapblock_mesh.cpp | |
parent | 87e9466cafd72ab9b78218c67352c80d20e008a8 (diff) | |
download | minetest-33e0eedbfb116111fa79cbc506d9e94ffbb1543b.tar.gz minetest-33e0eedbfb116111fa79cbc506d9e94ffbb1543b.tar.bz2 minetest-33e0eedbfb116111fa79cbc506d9e94ffbb1543b.zip |
Add smooth lighting for all nodes
Note: Smooth lighting disables the mesh cache.
Diffstat (limited to 'src/mapblock_mesh.cpp')
-rw-r--r-- | src/mapblock_mesh.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapblock_mesh.cpp b/src/mapblock_mesh.cpp index dfd6f55a5..0744cd527 100644 --- a/src/mapblock_mesh.cpp +++ b/src/mapblock_mesh.cpp @@ -236,7 +236,7 @@ static u16 getSmoothLightCombined(v3s16 p, MeshMakeData *data) for (u32 i = 0; i < 8; i++) { - const MapNode &n = data->m_vmanip.getNodeRefUnsafeCheckFlags(p - dirs8[i]); + MapNode n = data->m_vmanip.getNodeNoExNoEmerge(p - dirs8[i]); // if it's CONTENT_IGNORE we can't do any light calculations if (n.getContent() == CONTENT_IGNORE) { |