diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2021-04-28 11:07:28 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2021-05-03 19:49:19 +0200 |
commit | 74125a74d34e9b1a003107d4ef6b95b8483d2464 (patch) | |
tree | 8bdec97fb8aa537172cd8dc862adf9259b32435d /src/client/client.cpp | |
parent | e0716384d6c7abfa228b039056f1e872ca7bb8cf (diff) | |
download | minetest-74125a74d34e9b1a003107d4ef6b95b8483d2464.tar.gz minetest-74125a74d34e9b1a003107d4ef6b95b8483d2464.tar.bz2 minetest-74125a74d34e9b1a003107d4ef6b95b8483d2464.zip |
refacto: hide mesh_cache inside the rendering engine
This permit cleaner access to meshCache and ensure we don't access to it from all the code
Diffstat (limited to 'src/client/client.cpp')
-rw-r--r-- | src/client/client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/client.cpp b/src/client/client.cpp index 48097be2e..15979df02 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -1983,7 +1983,7 @@ scene::IAnimatedMesh* Client::getMesh(const std::string &filename, bool cache) return nullptr; mesh->grab(); if (!cache) - m_rendering_engine->get_mesh_cache()->removeMesh(mesh); + m_rendering_engine->removeMesh(mesh); return mesh; } |