Skip to content
Snippets Groups Projects
Commit 1c58bca4 authored by Alexander Rose's avatar Alexander Rose
Browse files

fix wrong props object in Structure creation

parent c01be064
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ export function atomicSequence(): StructureQuery { ...@@ -41,7 +41,7 @@ export function atomicSequence(): StructureQuery {
units.push(unit); units.push(unit);
} }
return StructureSelection.Singletons(inputStructure, new Structure(units, inputStructure, )); return StructureSelection.Singletons(inputStructure, new Structure(units, { parent: inputStructure }));
}; };
} }
...@@ -60,7 +60,7 @@ export function water(): StructureQuery { ...@@ -60,7 +60,7 @@ export function water(): StructureQuery {
if (P.entity.type(l) !== 'water') continue; if (P.entity.type(l) !== 'water') continue;
units.push(unit); units.push(unit);
} }
return StructureSelection.Singletons(inputStructure, new Structure(units, inputStructure)); return StructureSelection.Singletons(inputStructure, new Structure(units, { parent: inputStructure }));
}; };
} }
...@@ -90,7 +90,7 @@ export function atomicHet(): StructureQuery { ...@@ -90,7 +90,7 @@ export function atomicHet(): StructureQuery {
units.push(unit); units.push(unit);
} }
return StructureSelection.Singletons(inputStructure, new Structure(units, inputStructure)); return StructureSelection.Singletons(inputStructure, new Structure(units, { parent: inputStructure }));
}; };
} }
...@@ -103,6 +103,6 @@ export function spheres(): StructureQuery { ...@@ -103,6 +103,6 @@ export function spheres(): StructureQuery {
if (unit.kind !== Unit.Kind.Spheres) continue; if (unit.kind !== Unit.Kind.Spheres) continue;
units.push(unit); units.push(unit);
} }
return StructureSelection.Singletons(inputStructure, new Structure(units, inputStructure)); return StructureSelection.Singletons(inputStructure, new Structure(units, { parent: inputStructure }));
}; };
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment