86 |
|
} |
87 |
|
|
88 |
|
void SelectionEvaluator::clearState() { |
89 |
– |
//for (int i = scriptLevelMax; --i >= 0; ) |
90 |
– |
// stack[i].clear(); |
91 |
– |
//scriptLevel = 0; |
89 |
|
error = false; |
90 |
|
errorMessage = ""; |
91 |
|
} |
227 |
|
compareProperty(atom, bs, property, comparator, comparisonValue); |
228 |
|
} |
229 |
|
|
233 |
– |
//change the positions of atoms which belong to the rigidbodies |
230 |
|
for (rb = mol->beginRigidBody(rbIter); rb != NULL; rb = mol->nextRigidBody(rbIter)) { |
231 |
|
compareProperty(rb, bs, property, comparator, comparisonValue); |
232 |
|
} |
399 |
|
if (index < 0 || index >= bs.size()) { |
400 |
|
invalidIndex(index); |
401 |
|
} else { |
402 |
< |
indexFinder.find(index); |
402 |
> |
bs = indexFinder.find(index); |
403 |
|
} |
404 |
|
} else if (value.type() == typeid(std::pair<int, int>)) { |
405 |
|
std::pair<int, int> indexRange= boost::any_cast<std::pair<int, int> >(value); |
407 |
|
if (indexRange.first < 0 || indexRange.second >= bs.size()) { |
408 |
|
invalidIndexRange(indexRange); |
409 |
|
}else { |
410 |
< |
indexFinder.find(indexRange.first, indexRange.second); |
410 |
> |
bs = indexFinder.find(indexRange.first, indexRange.second); |
411 |
|
} |
412 |
|
} |
413 |
|
|