Permalink
Browse files

alignment objects from "super" do not contain N atoms - ID: 3506103

  • Loading branch information...
1 parent 50c52b7 commit fa53f1ad7ec61aec28aabcbcc5043f94c4207153 @speleo3 committed Aug 30, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 layer3/Selector.c
View
@@ -3755,6 +3755,10 @@ int SelectorCreateAlignments(PyMOLGlobals * G,
cnt++;
} else {
+ /* search back to first atom in residue */
+ while(at1a > 0 && AtomInfoSameResidue(G, ai1a, ai1a - 1)) { ai1a--; at1a--; }
+ while(at2a > 0 && AtomInfoSameResidue(G, ai2a, ai2a - 1)) { ai2a--; at2a--; }
+
while(1) { /* match up all matching atom names in each residue */
cmp = AtomInfoNameOrder(G, ai1a, ai2a);
if(cmp == 0) { /* atoms match */

0 comments on commit fa53f1a

Please sign in to comment.