From: <mig...@us...> - 2006-04-02 18:46:51
|
Revision: 4880 Author: migueljmol Date: 2006-04-02 11:46:48 -0700 (Sun, 02 Apr 2006) ViewCVS: http://svn.sourceforge.net/jmol/?rev=4880&view=rev Log Message: ----------- extend order when deleting so that different flavors of hbond get deleted Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/Sticks.java Modified: trunk/Jmol/src/org/jmol/viewer/Sticks.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/Sticks.java 2006-04-02 16:28:08 UTC (rev 4879) +++ trunk/Jmol/src/org/jmol/viewer/Sticks.java 2006-04-02 18:46:48 UTC (rev 4880) @@ -219,6 +219,8 @@ BitSet bsDelete = new BitSet(); float minDistanceSquared = minDistance * minDistance; float maxDistanceSquared = maxDistance * maxDistance; + if ((order & JmolConstants.BOND_HYDROGEN_MASK) != 0) + order = JmolConstants.BOND_HYDROGEN_MASK; for (int i = bondCount; --i >= 0; ) { Bond bond = bonds[i]; Atom atom1 = bond.atom1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |