1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

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
This commit is contained in:
Loic Blot 2021-04-28 11:07:28 +02:00 committed by Loïc Blot
parent e0716384d6
commit 74125a74d3
4 changed files with 13 additions and 32 deletions

View file

@ -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;
}