Project

General

Profile

« Previous | Next » 

Revision 75ec369a

Added by Leszek Koltunski about 8 years ago

Bugfix

View differences:

src/main/java/org/distorted/library/type/Dynamic2D.java
500 500
                  next = vv.elementAt(vecNext);
501 501
                  tmp2 = vc.elementAt(vecNext);
502 502

  
503
                  if( tmp2.cached[0]!=next.x ) recomputeCache();
503
                  if( tmp2.cached[0]!=next.x || tmp2.cached[1]!=next.y ) recomputeCache();
504 504
                  }
505 505

  
506 506
                if( mSegment!= segment && vn!=null ) vn.elementAt(vecCurr).computeNoise();
src/main/java/org/distorted/library/type/Dynamic3D.java
531 531
                  next = vv.elementAt(vecNext);
532 532
                  tmp2 = vc.elementAt(vecNext);
533 533

  
534
                  if( tmp2.cached[0]!=next.x ) recomputeCache();
534
                  if( tmp2.cached[0]!=next.x || tmp2.cached[1]!=next.y || tmp2.cached[2]!=next.z ) recomputeCache();
535 535
                  }
536 536

  
537 537
                if( mSegment!= segment && vn!=null ) vn.elementAt(vecCurr).computeNoise();
src/main/java/org/distorted/library/type/Dynamic4D.java
547 547
                  next = vv.elementAt(vecNext);
548 548
                  tmp2 = vc.elementAt(vecNext);
549 549

  
550
                  if( tmp2.cached[0]!=next.x ) recomputeCache();
550
                  if( tmp2.cached[0]!=next.x || tmp2.cached[1]!=next.y || tmp2.cached[2]!=next.z || tmp2.cached[3]!=next.w ) recomputeCache();
551 551
                  }
552 552

  
553 553
                if( mSegment!= segment && vn!=null ) vn.elementAt(vecCurr).computeNoise();
src/main/java/org/distorted/library/type/Dynamic5D.java
570 570
                  next = vv.elementAt(vecNext);
571 571
                  tmp2 = vc.elementAt(vecNext);
572 572

  
573
                  if( tmp2.cached[0]!=next.x ) recomputeCache();
573
                  if( tmp2.cached[0]!=next.x || tmp2.cached[1]!=next.y || tmp2.cached[2]!=next.z || tmp2.cached[3]!=next.w || tmp2.cached[4]!=next.v ) recomputeCache();
574 574
                  }
575 575

  
576 576
                if( mSegment!= segment && vn!=null ) vn.elementAt(vecCurr).computeNoise();

Also available in: Unified diff