Revision c0e4d5cf
Added by Leszek Koltunski almost 3 years ago
src/main/java/org/distorted/library/type/Dynamic3D.java | ||
---|---|---|
438 | 438 |
case 2: curr = vv.elementAt(0); |
439 | 439 |
next = vv.elementAt(1); |
440 | 440 |
|
441 |
int segment2= (int)(2*time);
|
|
441 |
int segment= (int)(2*time); |
|
442 | 442 |
|
443 | 443 |
if( mMode==MODE_LOOP || mMode==MODE_PATH ) time = (time>0.5f ? 2-2*time : 2*time); |
444 | 444 |
|
445 | 445 |
if( vn!=null ) |
446 | 446 |
{ |
447 |
if( segment2 != mSegment )
|
|
447 |
if( segment != mSegment ) |
|
448 | 448 |
{ |
449 | 449 |
if(mMode!=MODE_JUMP || mSegment==1) vn.elementAt(0).computeNoise(); |
450 |
mSegment = segment2;
|
|
450 |
mSegment = segment; |
|
451 | 451 |
} |
452 | 452 |
|
453 | 453 |
time = noise(time,0); |
Also available in: Unified diff
Dynamics: minor.