Revision 39c6b370
Added by Leszek Koltunski almost 2 years ago
src/main/java/org/distorted/objectlib/main/TwistyObject.java | ||
---|---|---|
730 | 730 |
if( cubitType!=Cubit.TYPE_NORMAL ) |
731 | 731 |
{ |
732 | 732 |
int variant = getCubitVariant(cubitIndex,mNumLayers); |
733 |
int[][] indices = mShapes[variant].getVertIndices(); |
|
734 |
int outer=-1, faces = indices.length; |
|
735 | 733 |
|
736 | 734 |
// object must have been created from JSON |
737 | 735 |
if( mVariantFaceIsOuter==null || mVariantFaceIsOuter[variant]==null ) |
738 | 736 |
{ |
739 | 737 |
mVariantFaceIsOuter = getVariantFaceIsOuter(); |
740 | 738 |
} |
739 |
if( mShapes==null ) |
|
740 |
{ |
|
741 |
mShapes = new ObjectShape[mNumCubitVariants]; |
|
742 |
} |
|
743 |
if( mShapes[variant]==null ) |
|
744 |
{ |
|
745 |
mShapes[variant] = getObjectShape(variant); |
|
746 |
} |
|
747 |
if( mOrigQuat==null ) |
|
748 |
{ |
|
749 |
mOrigQuat = new Static4D[mNumCubits]; |
|
750 |
} |
|
751 |
if( mOrigQuat[cubitIndex]==null ) |
|
752 |
{ |
|
753 |
mOrigQuat[cubitIndex] = getCubitQuats(cubitIndex,mNumLayers); |
|
754 |
} |
|
755 |
|
|
756 |
int[][] indices = mShapes[variant].getVertIndices(); |
|
757 |
int outer=-1, faces = indices.length; |
|
741 | 758 |
|
742 | 759 |
for(int i=0; i<faces; i++) |
743 | 760 |
{ |
Also available in: Unified diff
Crazy Planets: J1 M1 mode works now.