Bezier Curve Bug

Hi



I don't know if this is the right place to post this, but I think there is a bug in the bezier curve class. There is a divide by 0 error when time is 1 in the getPoint method



this is my quick fix … hopefully its correct


         float d = (1-time);
         
         int diff = count - iCount;
         
         if(i == getBatch(0).getVertexCount()-1 && munk ==0)
            munk = 1;
         
         float blend = muk * munk;
         muk *= time;
         
         if(d == 0)
            d = 1;
         
         munk /= d;