Revision: 5210 Author: hansonr Date: 2006-06-09 08:58:23 -0700 (Fri, 09 Jun 2006) ViewCVS: http://svn.sourceforge.net/jmol/?rev=5210&view=rev
Log Message: ----------- bob200603 10.x.11 fixes bug with animation direction -1;animation mode loop not repeating properly. New JARs and ZIP in http://www.stolaf.edu/people/hansonr/jmol/test/proto Modified Paths: -------------- branches/bob200603/Jmol/src/org/jmol/viewer/RepaintManager.java Modified: branches/bob200603/Jmol/src/org/jmol/viewer/RepaintManager.java =================================================================== --- branches/bob200603/Jmol/src/org/jmol/viewer/RepaintManager.java 2006-06-09 04:46:19 UTC (rev 5209) +++ branches/bob200603/Jmol/src/org/jmol/viewer/RepaintManager.java 2006-06-09 15:58:23 UTC (rev 5210) @@ -237,9 +237,7 @@ firstModelIndex = framePointer; lastModelIndex = framePointer2; frameStep = (framePointer2 < framePointer ? -1 : 1); - currentDirection = 1; - - setDisplayModelIndex(animationDirection > 0 ? firstModelIndex : lastModelIndex); + rewindAnimation(); //System.out.println("setting in range displayModelIndex: " + displayModelIndex); //System.out.println("setAnimationRange first=" + firstModelIndex + " last=" + lastModelIndex +" currentDirection="+currentDirection); } @@ -328,7 +326,7 @@ case 0: //once through return false; case 1: //repeat - modelIndexNext = firstModelIndex; + modelIndexNext = (animationDirection > 0 ? firstModelIndex : lastModelIndex); break; case 2: //palindrome currentDirection = -currentDirection; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Jmol-commits mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-commits
