Project

General

Profile

« Previous | Next » 

Revision 332e1fb0

Added by Leszek Koltunski over 2 years ago

Make the meshAssociation of the Rotate effect independent of the global MAX_SIZE of any implemented object.
Now only the NUM_OF_AXIS*MAX_NUM_OF_LAYERS of any individual object needs to be <=32 - before the second factor was global, which - because of the recent introduction of the Cube6 - screwed the Gigaminx (!) where NUM_OF_AXIS=6 and GLOBAL_MAX_NUM_LAYERS = 6 now, so 6*6>32 !

View differences:

src/main/java/org/distorted/objectlib/main/Cubit.java
155 155
    for(int axis=0; axis<mNumAxis; axis++)
156 156
      {
157 157
      result += (mRotationRow[axis]<<accumulativeShift);
158
      accumulativeShift += ObjectType.MAX_OBJECT_SIZE;
158
      accumulativeShift += mParent.SHIFT;
159 159
      }
160 160

  
161 161
    return result;

Also available in: Unified diff