Project

General

Profile

« Previous | Next » 

Revision 80fe0ef7

Added by Leszek Koltunski almost 4 years ago

Bugfix for a crasher

View differences:

src/main/java/org/distorted/main/RubikSurfaceView.java
306 306
      else
307 307
        {
308 308
        TwistyObject object = mPreRender.getObject();
309
        CAMERA_POINT.set2( object.getCameraDist() );
309
        CAMERA_POINT.set2( object==null ? 1.21f : object.getCameraDist() );
310 310

  
311 311
        Static4D touchPoint = new Static4D(x, y, 0, 0);
312 312
        Static4D rotatedTouchPoint= rotateVectorByInvertedQuat(touchPoint, mQuat);

Also available in: Unified diff