From: <ha...@us...> - 2007-03-29 18:55:29
|
Revision: 7259 http://svn.sourceforge.net/jmol/?rev=7259&view=rev Author: hansonr Date: 2007-03-29 11:55:27 -0700 (Thu, 29 Mar 2007) Log Message: ----------- color mo translucent fix Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/MolecularOrbital.java Modified: trunk/Jmol/src/org/jmol/viewer/MolecularOrbital.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/MolecularOrbital.java 2007-03-29 18:39:34 UTC (rev 7258) +++ trunk/Jmol/src/org/jmol/viewer/MolecularOrbital.java 2007-03-29 18:55:27 UTC (rev 7259) @@ -146,6 +146,11 @@ } if ("translucency" == propertyName) { + if (thisModel == null) { + if (currentMesh == null) + return; + thisModel = (Hashtable) htModels.get(currentMesh.thisID); + } thisModel.put("moTranslucency", value); //pass through } @@ -279,6 +284,8 @@ if (moColorNeg != null) appendCmd(s, "mo color " + StateManager.escapeColor(moColorNeg.intValue()) + (moColorNeg.equals(moColorPos) ? "" : " " + StateManager.escapeColor(moColorPos.intValue()))); + if (moTranslucency != null) + appendCmd(s, "mo translucent"); appendCmd(s, "mo " + moNumber); appendCmd(s, getMeshState(currentMesh, "mo")); return s.toString(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |