Revision c0e4d5cf
Added by Leszek Koltunski almost 3 years ago
src/main/java/org/distorted/library/type/Dynamic2D.java | ||
---|---|---|
413 | 413 |
case 2: curr = vv.elementAt(0); |
414 | 414 |
next = vv.elementAt(1); |
415 | 415 |
|
416 |
int segment2= (int)(2*time);
|
|
416 |
int segment= (int)(2*time); |
|
417 | 417 |
|
418 | 418 |
if( mMode==MODE_LOOP || mMode==MODE_PATH ) time = (time>0.5f ? 2-2*time : 2*time); |
419 | 419 |
|
420 | 420 |
if( vn!=null ) |
421 | 421 |
{ |
422 |
if( segment2 != mSegment )
|
|
422 |
if( segment != mSegment ) |
|
423 | 423 |
{ |
424 | 424 |
if(mMode!=MODE_JUMP || mSegment==1) vn.elementAt(0).computeNoise(); |
425 |
mSegment = segment2;
|
|
425 |
mSegment = segment; |
|
426 | 426 |
} |
427 | 427 |
|
428 | 428 |
time = noise(time,0); |
Also available in: Unified diff
Dynamics: minor.