Project

General

Profile

« Previous | Next » 

Revision 985f3dfa

Added by Leszek Koltunski about 3 years ago

Do not block the UI if, for some reason, some of the effects failed to get added to the Queue. Just fail to rotate.

View differences:

src/main/java/org/distorted/tutorial/TutorialPreRender.java
168 168
    mAddRotation = false;
169 169
    mAddRotationID = mNewObject.addNewRotation( mAddRotationAxis, mAddRotationRowBitmap,
170 170
                                                mAddRotationAngle, mAddRotationDuration, this);
171

  
172
    if( mAddRotationID==0 ) // failed to add effect - should never happen
173
      {
174
      mCanPlay = true;
175
      }
171 176
    }
172 177

  
173 178
///////////////////////////////////////////////////////////////////////////////////////////////////
......
180 185

  
181 186
    if( mRotationFinishedID==0 ) // failed to add effect - should never happen
182 187
      {
183
      mCanPlay   = true;
188
      mCanPlay = true;
184 189
      }
185 190
    }
186 191

  

Also available in: Unified diff