Project

General

Profile

« Previous | Next » 

Revision 4a389a4e

Added by Leszek Koltunski over 2 years ago

Fix setDefaultRotation() when changing an object; do it at exactly the right time when the 'old' object has already disappeared, but the new hasn't been attached to the Nodee yet.

View differences:

src/main/java/org/distorted/objectlib/main/ObjectPreRender.java
421 421
    mMeshStream = meshStream;
422 422
    }
423 423

  
424
///////////////////////////////////////////////////////////////////////////////////////////////////
425

  
426
  public void setDefaultRotation(int numFaces)
427
    {
428
    if( mController.getRotateOnCreation() )
429
      {
430
      switch(numFaces)
431
        {
432
        case  4: mController.rotateNow(ShapeTetrahedron.DEFAULT_ROT ); break;
433
        case  6: mController.rotateNow(ShapeHexahedron.DEFAULT_ROT  ); break;
434
        case  8: mController.rotateNow(ShapeOctahedron.DEFAULT_ROT  ); break;
435
        case 12: mController.rotateNow(ShapeDodecahedron.DEFAULT_ROT); break;
436
        }
437
      }
438
    }
439

  
424 440
///////////////////////////////////////////////////////////////////////////////////////////////////
425 441

  
426 442
  public boolean isTouchBlocked()

Also available in: Unified diff