From: <ha...@us...> - 2012-04-02 17:18:43
|
Revision: 16956 http://jmol.svn.sourceforge.net/jmol/?rev=16956&view=rev Author: hansonr Date: 2012-04-02 17:18:37 +0000 (Mon, 02 Apr 2012) Log Message: ----------- additional fix for hand-made state script containing "dots off" and additionally (later) using compare ROTATE TRANSLATE Modified Paths: -------------- branches/v12_2/Jmol/src/org/jmol/shapespecial/Dots.java Modified: branches/v12_2/Jmol/src/org/jmol/shapespecial/Dots.java =================================================================== --- branches/v12_2/Jmol/src/org/jmol/shapespecial/Dots.java 2012-04-02 17:18:23 UTC (rev 16955) +++ branches/v12_2/Jmol/src/org/jmol/shapespecial/Dots.java 2012-04-02 17:18:37 UTC (rev 16956) @@ -139,8 +139,11 @@ if ("refreshTrajectories" == propertyName) { bs = (BitSet) ((Object[]) value)[1]; + Matrix4f m4 = (Matrix4f) ((Object[]) value)[2]; + if (m4 == null) // end of compare command + return; Matrix3f m = new Matrix3f(); - ((Matrix4f) ((Object[]) value)[2]).get(m); + m4.get(m); ec.reCalculate(bs, m); return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |