]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - plugins/entity/model.h
fix MD3 model entities crash on OS X (by renaming a class; apparently something weird...
[xonotic/netradiant.git] / plugins / entity / model.h
index d02c7a857e78d1e7b62ec4ead200016293cf38a7..4e23b93f1cb105c958f10950042e3cc66409e7a6 100644 (file)
@@ -29,7 +29,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #include "os/path.h"
 #include "moduleobserver.h"
 
-class Model : public ModuleObserver
+class EModel : public ModuleObserver
 {
   ResourceReference m_resource;
   scene::Traversable& m_traverse;
@@ -37,12 +37,12 @@ class Model : public ModuleObserver
   Callback m_modelChanged;
 
 public:
-  Model(scene::Traversable& traversable, const Callback& modelChanged)
+  EModel(scene::Traversable& traversable, const Callback& modelChanged)
     : m_resource(""), m_traverse(traversable), m_node(0), m_modelChanged(modelChanged)
   {
     m_resource.attach(*this);
   }
-  ~Model()
+  ~EModel()
   {
     m_resource.detach(*this);
   }
@@ -73,7 +73,7 @@ public:
     m_resource.attach(*this);
     m_modelChanged();
   }
-  typedef MemberCaller1<Model, const char*, &Model::modelChanged> ModelChangedCaller;
+  typedef MemberCaller1<EModel, const char*, &EModel::modelChanged> ModelChangedCaller;
 
   const char* getName() const
   {
@@ -88,7 +88,7 @@ public:
 class SingletonModel
 {
   TraversableNode m_traverse;
-  Model m_model;
+  EModel m_model;
 public:
   SingletonModel()
     : m_model(m_traverse, Callback())