aboutsummaryrefslogtreecommitdiff
path: root/src/mapblock_mesh.cpp
diff options
context:
space:
mode:
authornumber Zero <silverunicorn2011@yandex.ru>2017-01-25 00:33:01 +0300
committerAuke Kok <sofar@foo-projects.org>2017-01-24 13:59:40 -0800
commit33e0eedbfb116111fa79cbc506d9e94ffbb1543b (patch)
tree9ebe88fdaa5b21569a95a700315e62951be16aa0 /src/mapblock_mesh.cpp
parent87e9466cafd72ab9b78218c67352c80d20e008a8 (diff)
downloadminetest-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.cpp2
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) {