aboutsummaryrefslogtreecommitdiff
path: root/src/clientmap.cpp
diff options
context:
space:
mode:
authorLars Hofhansl <larsh@apache.org>2017-02-04 16:35:54 -0800
committerparamat <mat.gregory@virginmedia.com>2017-02-09 00:10:41 +0000
commit3ad68c052bb4d58892b4d1e8cd6be59ea860df8f (patch)
tree54efff50688eed7ebc85dff7b2fe6c5d8ddce0f8 /src/clientmap.cpp
parenta5ee7139a591eeffce5171e0df7a76f3c7a1d57e (diff)
downloadminetest-3ad68c052bb4d58892b4d1e8cd6be59ea860df8f.tar.gz
minetest-3ad68c052bb4d58892b4d1e8cd6be59ea860df8f.tar.bz2
minetest-3ad68c052bb4d58892b4d1e8cd6be59ea860df8f.zip
Perform mesh animation only once per frame.
Diffstat (limited to 'src/clientmap.cpp')
-rw-r--r--src/clientmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clientmap.cpp b/src/clientmap.cpp
index 11719539f..fb70a97e9 100644
--- a/src/clientmap.cpp
+++ b/src/clientmap.cpp
@@ -470,7 +470,7 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass)
continue;
// Mesh animation
- {
+ if (pass == scene::ESNRP_SOLID) {
//MutexAutoLock lock(block->mesh_mutex);
MapBlockMesh *mapBlockMesh = block->mesh;
assert(mapBlockMesh);