From: <ha...@us...> - 2006-12-14 13:57:55
|
Revision: 6457 http://svn.sourceforge.net/jmol/?rev=6457&view=rev Author: hansonr Date: 2006-12-14 05:57:51 -0800 (Thu, 14 Dec 2006) Log Message: ----------- fixes moveto flashing bug Modified Paths: -------------- branches/v11_0/Jmol/src/org/jmol/viewer/Eval.java Modified: branches/v11_0/Jmol/src/org/jmol/viewer/Eval.java =================================================================== --- branches/v11_0/Jmol/src/org/jmol/viewer/Eval.java 2006-12-14 06:11:53 UTC (rev 6456) +++ branches/v11_0/Jmol/src/org/jmol/viewer/Eval.java 2006-12-14 13:57:51 UTC (rev 6457) @@ -1964,11 +1964,12 @@ if (statementLength < 2) badArgumentCount(); if (statementLength == 2 && isFloatParameter(1)) { - refresh(); float f = floatParameter(1); - if (!isSyntaxCheck) - viewer.moveTo(f, null, new Point3f(0, 0, 1), 0, 100, 0, - 0, 0); + if (isSyntaxCheck) + return; + if (f > 0) + refresh(); + viewer.moveTo(f, null, new Point3f(0, 0, 1), 0, 100, 0, 0, 0); return; } Point3f pt = new Point3f(); @@ -2038,10 +2039,12 @@ if (i != statementLength) rotationRadius = floatParameter(i++); } - refresh(); - if (!isSyntaxCheck) - viewer.moveTo(floatSecondsTotal, center, pt, degrees, zoom, xTrans, - yTrans, rotationRadius); + if (isSyntaxCheck) + return; + if (floatSecondsTotal > 0) + refresh(); + viewer.moveTo(floatSecondsTotal, center, pt, degrees, zoom, xTrans, yTrans, + rotationRadius); } void bondorder() throws ScriptException { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |