Project

General

Profile

« Previous | Next » 

Revision c850eb4f

Added by Leszek Koltunski over 2 years ago

Bugfix

View differences:

src/main/java/org/distorted/objectlib/helpers/FactoryCubit.java
894 894
      sInfo = mStickerCoords.get(fInfo.sticker);
895 895

  
896 896
      float[] verts = sInfo.vertices;
897
      int lenVerts = verts.length;
898
      float[] copiedVerts = new float[lenVerts];
899
      System.arraycopy(verts, 0, copiedVerts, 0, lenVerts);
897 900

  
898 901
      computeConvexityCenter(convexXY,convexityCenter,fInfo);
899 902

  
900
android.util.Log.e("D", "convexX="+convexXY[0]+" converY="+convexXY[1]);
901
convexXY[0]=0;
902
convexXY[1]=0;
903

  
904 903
      band = bands[bandIndexes[face]];
905 904
      bandsComputed = computeBands( band[0], (int)band[1], band[2], band[3], (int)band[4]);
906
      meshes[face] = new MeshPolygon(verts,bandsComputed,(int)band[5],(int)band[6], convexXY[0], convexXY[1]);
905
      meshes[face] = new MeshPolygon(copiedVerts,bandsComputed,(int)band[5],(int)band[6], convexXY[0], convexXY[1]);
907 906
      meshes[face].setEffectAssociation(0,(1<<face),0);
908 907
      }
909 908

  

Also available in: Unified diff