Project

General

Profile

« Previous | Next » 

Revision abe288a3

Added by Leszek Koltunski over 3 years ago

Come back to creating the objects from mesh.

View differences:

src/main/java/org/distorted/objects/TwistyDino4.java
113 113
      }
114 114
    else
115 115
      {
116
      int newVector = rnd.nextInt(NUM_AXIS -1);
116
      int newVector = rnd.nextInt(NUM_AXIS-1);
117 117
      scramble[curr][0] = (newVector>=scramble[curr-1][0] ? newVector+1 : newVector);
118 118
      scramble[curr][1] = scramble[curr-1][0]+scramble[curr][0]==3 ? 2-scramble[curr-1][1] : scramble[curr-1][1];
119 119
      }
src/main/java/org/distorted/objects/TwistyObject.java
247 247
    int sizeIndex = ObjectList.getSizeIndex(list.ordinal(),mNumLayers);
248 248
    int resourceID= list.getResourceIDs()[sizeIndex];
249 249

  
250
    if( false)//resourceID!=0 )
250
    if( resourceID!=0 )
251 251
      {
252 252
      InputStream is = res.openRawResource(resourceID);
253 253
      DataInputStream dos = new DataInputStream(is);

Also available in: Unified diff