From 2b5ac5b4dbc78e1fa4b15fb1a84df0759d4c9de2 Mon Sep 17 00:00:00 2001 From: Julien Valentin Date: Mon, 28 Aug 2017 15:27:46 +0200 Subject: [PATCH] add default constructor for IndexWeight with invalid indices --- include/osgAnimation/VertexInfluence | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;}