From d76957ee22c27adab89cee551e3ab1c85d8717cc Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 6 Jan 2014 13:24:06 +0200 Subject: Create new instance of mesh every time it's required (Solves #703) --- src/gamedef.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gamedef.h') diff --git a/src/gamedef.h b/src/gamedef.h index 1d46b028e..6da288bad 100644 --- a/src/gamedef.h +++ b/src/gamedef.h @@ -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. -- cgit v1.2.3