summaryrefslogtreecommitdiff
path: root/src/gamedef.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2014-01-06 13:24:06 +0200
committerPerttu Ahola <celeron55@gmail.com>2014-01-06 13:24:31 +0200
commitd76957ee22c27adab89cee551e3ab1c85d8717cc (patch)
tree4facd7100f9c527203681000a1ffb14351eecc81 /src/gamedef.h
parent86c616a545efcc8ed8487440d686a17358170756 (diff)
downloadminetest-d76957ee22c27adab89cee551e3ab1c85d8717cc.tar.gz
minetest-d76957ee22c27adab89cee551e3ab1c85d8717cc.tar.bz2
minetest-d76957ee22c27adab89cee551e3ab1c85d8717cc.zip
Create new instance of mesh every time it's required (Solves #703)
Diffstat (limited to 'src/gamedef.h')
-rw-r--r--src/gamedef.h5
1 files changed, 5 insertions, 0 deletions
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.