diff --git a/include/osgAnimation/VertexInfluence b/include/osgAnimation/VertexInfluence index 4b2adb347..bf3a9b2be 100644 --- a/include/osgAnimation/VertexInfluence +++ b/include/osgAnimation/VertexInfluence @@ -36,7 +36,7 @@ namespace osgAnimation // first is vertex index, and second the weight struct IndexWeight: public std::pair { - IndexWeight( unsigned int f,float s): std::pair(f,s){} + IndexWeight( unsigned int f = 0xffffffff,float s = 0.0f): std::pair(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;}