Project

General

Profile

« Previous | Next » 

Revision 45516ed2

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/config/ConfigScreenPane.java
52 52

  
53 53
  private static final int NUM_IMAGES = IMAGES.length;
54 54
  public  static final float PADDING_RATIO = 0.025f;
55
  private static final float TEXT_RATIO    = 0.040f;
55
  private static final float TEXT_RATIO    = 0.042f;
56 56
  private static final float RADIO_RATIO   = 0.900f;
57 57

  
58 58
  private JsonReader mReader;
......
110 110
    mProgramatic = true;
111 111
    button.setChecked(true);
112 112
    mProgramatic = false;
113

  
114
    int numFaces = mReader.getNumFaces();
115
    act.rotateObject(numFaces);
116 113
    }
117 114

  
118 115
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff