- highlightAtom(atom.getAtomIndex(), atom.getPdbResNum(),
- atom.getChain(), atom.getPdbFile(), useScriptWait);
+ StringBuilder thisAtom = highlightAtom(atom.getAtomIndex(),
+ atom.getPdbResNum(), atom.getChain(), atom.getPdbFile());
+ if (thisAtom != null)
+ {
+ if (highlightCommands == null)
+ {
+ highlightCommands = thisAtom;
+ }
+ else
+ {
+ highlightCommands.append(thisAtom);
+ }
+ }
+ }
+ if (highlightCommands != null)
+ {
+ jmolHistory(false);
+ jmolScript(highlightCommands.toString());
+ jmolHistory(true);