GRIM: Rename Model's getters.

This commit is contained in:
Giulio Camuffo 2011-05-05 11:43:04 +02:00
parent bf99df1bd7
commit e80a4234fc
2 changed files with 3 additions and 3 deletions

View File

@ -141,7 +141,7 @@ public:
~ModelComponent();
Model::HierNode *getHierarchy() { return _hier; }
int getNumNodes() { return _obj->numNodes(); }
int getNumNodes() { return _obj->getNumNodes(); }
void draw();
protected:
@ -337,7 +337,7 @@ void ModelComponent::reset() {
// Reset the hierarchy nodes for any keyframe animations (which
// are children of this component and therefore get updated later).
void ModelComponent::update() {
for (int i = 0; i < _obj->numNodes(); i++) {
for (int i = 0; i < _obj->getNumNodes(); i++) {
_hier[i]._priority = -1;
_hier[i]._animPos.set(0,0,0);
_hier[i]._animPitch = 0;

View File

@ -79,7 +79,7 @@ public:
};
HierNode *copyHierarchy();
int numNodes() const { return _numHierNodes; }
int getNumNodes() const { return _numHierNodes; }
//private:
struct Face {