Revision: 5203
Author: hansonr
Date: 2006-06-06 08:06:45 -0700 (Tue, 06 Jun 2006)
ViewCVS: http://svn.sourceforge.net/jmol/?rev=5203&view=rev
Log Message:
-----------
trunk -- 10.3 fixes animation direction -1 not working.
Modified Paths:
--------------
trunk/Jmol/src/org/jmol/viewer/RepaintManager.java
Modified: trunk/Jmol/src/org/jmol/viewer/RepaintManager.java
===================================================================
--- trunk/Jmol/src/org/jmol/viewer/RepaintManager.java 2006-06-06 02:32:31 UTC
(rev 5202)
+++ trunk/Jmol/src/org/jmol/viewer/RepaintManager.java 2006-06-06 15:06:45 UTC
(rev 5203)
@@ -91,16 +91,14 @@
else
System.out.println("invalid animationReplayMode:" + animationReplayMode);
}
-
boolean setAnimationRelative(int direction) {
if (displayModelIndex < 0)
return false;
int modelIndexNext = displayModelIndex + (direction * currentDirection);
int modelCount = viewer.getModelCount();
- /*
- System.out.println("setAnimationRelative: displayModelID=" +
- displayModelID +
+
+ System.out.println("setAnimationRelative: " +
" displayModelIndex=" + displayModelIndex +
" currentDirection=" + currentDirection +
" direction=" + direction +
@@ -108,7 +106,7 @@
" modelCount=" + modelCount +
" animationReplayMode=" + animationReplayMode +
" animationDirection=" + animationDirection);
- */
+
if (modelIndexNext == modelCount) {
switch (animationReplayMode) {
@@ -138,11 +136,11 @@
}
boolean setAnimationNext() {
- return setAnimationRelative(animationDirection);
+ return setAnimationRelative(1);
}
boolean setAnimationPrevious() {
- return setAnimationRelative(-animationDirection);
+ return setAnimationRelative(-1);
}
boolean inMotion = false;
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