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/EffectQueuePostprocess.java
144 144
   
145 145
    for(int i=0; i<mNumEffects; i++)
146 146
      {
147
      mCurrentDuration[i] += step;
148

  
147 149
      if( mInter[0][i]!=null && mInter[0][i].interpolateMain(mUniforms ,NUM_UNIFORMS*i, mCurrentDuration[i], step) )
148 150
        {
149 151
        for(int j=0; j<mNumListeners; j++)
......
161 163
          }
162 164
        else mInter[0][i] = null;
163 165
        }
164

  
165
      mCurrentDuration[i] += step;
166 166
      }
167 167
     
168 168
    mTime = currTime;  

Also available in: Unified diff