revert s/VertexIndexWeight/IndexWeight/
This commit is contained in:
@@ -81,7 +81,7 @@ namespace osgAnimation
|
||||
unsigned int _minAttribIndex;
|
||||
bool buildPalette(const BoneMap& boneMap ,const RigGeometry& rig);
|
||||
|
||||
bool init(RigGeometry& );
|
||||
virtual bool init(RigGeometry& );
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -34,15 +34,15 @@ namespace osgAnimation
|
||||
inline void setWeight(float i){second=i;}
|
||||
};
|
||||
// first is vertex index, and second the weight
|
||||
struct IndexWeight: public std::pair<unsigned int, float>
|
||||
struct VertexIndexWeight: public std::pair<unsigned int, float>
|
||||
{
|
||||
IndexWeight( unsigned int f = 0xffffffff,float s = 0.0f): std::pair<unsigned int,float>(f,s){}
|
||||
VertexIndexWeight( unsigned int f = 0xffffffff,float s = 0.0f): std::pair<unsigned int,float>(f,s){}
|
||||
inline const unsigned int& getIndex()const{return first;}
|
||||
inline void setIndex(unsigned int i){first=i;}
|
||||
inline const float &getWeight()const{return second;}
|
||||
inline void setWeight(float i){second=i;}
|
||||
};
|
||||
typedef std::vector<IndexWeight> IndexWeightList;
|
||||
typedef std::vector<VertexIndexWeight> IndexWeightList;
|
||||
typedef std::vector<BoneWeight> BoneWeightList;
|
||||
typedef std::vector<unsigned int> IndexList;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user