Project

General

Profile

« Previous | Next » 

Revision f45e4279

Added by Leszek Koltunski over 4 years ago

Progres with SingleMesh; bugfix in MeshBase.apply(Matrix)

View differences:

src/main/java/org/distorted/library/mesh/MeshBase.java
260 260

  
261 261
     for(int i=0; i<numComp; i++)
262 262
       {
263
       start = end;
263
       start = end+1;
264 264
       end   = mEffComponent.get(i);
265 265

  
266 266
       if( (andAssoc & mAndAssociation[i]) != 0 || (equAssoc == mEquAssociation[i]) )
267 267
         {
268
         applyMatrixToComponent(matrix,start+1,end+1);
268
         applyMatrixToComponent(matrix,start,end);
269 269
         }
270 270
       }
271 271

  
......
278 278
     {
279 279
     float x,y,z;
280 280

  
281
     for(int index=start; index<end*VERT1_ATTRIBS; index+=VERT1_ATTRIBS )
281
     for(int index=start*VERT1_ATTRIBS; index<=end*VERT1_ATTRIBS; index+=VERT1_ATTRIBS )
282 282
       {
283 283
       x = mVertAttribs1[index+POS_ATTRIB  ];
284 284
       y = mVertAttribs1[index+POS_ATTRIB+1];

Also available in: Unified diff