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/EffectQueueVertex.java
75 75
   
76 76
    for(int i=0; i<mNumEffects; i++)
77 77
      {
78
      mCurrentDuration[i] += step;
79

  
78 80
      if( mInter[0][i]!=null )
79 81
        {
80 82
        if( mInter[0][i].interpolateMain(mUniforms ,NUM_UNIFORMS*i, mCurrentDuration[i], step) )
......
104 106

  
105 107
      if( mInter[1][i]!=null ) mInter[1][i].interpolateMain(mUniforms, NUM_UNIFORMS*i+8, mCurrentDuration[i], step);
106 108
      if( mInter[2][i]!=null ) mInter[2][i].interpolateMain(mCache   , NUM_CACHE*i     , mCurrentDuration[i], step);
107

  
108
      mCurrentDuration[i] += step;
109 109
      }
110 110
     
111 111
    mTime = currTime;  

Also available in: Unified diff