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

Create new instance of mesh every time it's required (Solves #703)

This commit is contained in:
Perttu Ahola 2014-01-06 13:24:06 +02:00
parent 86c616a545
commit d76957ee22
4 changed files with 44 additions and 24 deletions

View file

@ -31,6 +31,9 @@ class ISoundManager;
class IShaderSource;
class MtEventManager;
class IRollbackReportSink;
namespace irr { namespace scene {
class IAnimatedMesh;
}}
/*
An interface for fetching game-global definitions like tool and
@ -58,6 +61,8 @@ public:
// Only usable on the client
virtual ISoundManager* getSoundManager()=0;
virtual MtEventManager* getEventManager()=0;
virtual scene::IAnimatedMesh* getMesh(const std::string &filename)
{ return NULL; }
// Only usable on the server, and NOT thread-safe. It is usable from the
// environment thread.