Perform mesh animation only once per frame.
authorLars Hofhansl <larsh@apache.org>
Sun, 5 Feb 2017 00:35:54 +0000 (16:35 -0800)
committerparamat <mat.gregory@virginmedia.com>
Thu, 9 Feb 2017 00:10:41 +0000 (00:10 +0000)
src/clientmap.cpp

index 11719539fee7b2981fb569ec23caf7bb9b79e749..fb70a97e92f04ef58ab7845c498d4d396ce2dd9a 100644 (file)
@@ -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);