Project

General

Profile

« Previous | Next » 

Revision 3a70bd6d

Added by Leszek Koltunski about 7 years ago

Bugfix in EffectQueues: if we interpolate something, then stop and again start interpolating, it used to use the old position (position from the moment when we stopped interpolating!) during the first run after the resume. Fix that.

View differences:

src/main/java/org/distorted/library/EffectQueueMatrix.java
240 240
   
241 241
    for(int i=0; i<mNumEffects; i++)
242 242
      {
243
      mCurrentDuration[i] += step;
244

  
243 245
      if( mInter[0][i]!=null && mInter[0][i].interpolateMain(mUniforms ,NUM_UNIFORMS*i, mCurrentDuration[i], step) )
244 246
        {
245 247
        for(int j=0; j<mNumListeners; j++)
......
262 264
        {
263 265
        mInter[1][i].interpolateMain(mUniforms, NUM_UNIFORMS*i+4, mCurrentDuration[i], step);
264 266
        }
265

  
266
      mCurrentDuration[i] += step;
267 267
      }
268 268
     
269 269
    mTime = currTime;  

Also available in: Unified diff