Skip to content
Snippets Groups Projects
Commit 53d34807 authored by dsehnal's avatar dsehnal
Browse files

fix isConnectedTo query

parent eb629ef3
No related branches found
No related tags found
No related merge requests found
...@@ -278,7 +278,7 @@ function checkConnected(ctx: IsConnectedToCtx, structure: Structure) { ...@@ -278,7 +278,7 @@ function checkConnected(ctx: IsConnectedToCtx, structure: Structure) {
for (let li = 0; li < buCount; li++) { for (let li = 0; li < buCount; li++) {
const lu = bondedUnits[li]; const lu = bondedUnits[li];
const bUnit = structure.unitMap.get(lu.unitB) as Unit.Atomic; const bUnit = input.unitMap.get(lu.unitB) as Unit.Atomic;
const bElements = bUnit.elements; const bElements = bUnit.elements;
const bonds = lu.getEdges(inputIndex); const bonds = lu.getEdges(inputIndex);
for (let bi = 0, _bi = bonds.length; bi < _bi; bi++) { for (let bi = 0, _bi = bonds.length; bi < _bi; bi++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment