Browse Source

fix wrong props object in Structure creation

Alexander Rose 5 years ago
parent
commit
1c58bca454
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/mol-model/structure/query/queries/internal.ts

+ 4 - 4
src/mol-model/structure/query/queries/internal.ts

@@ -41,7 +41,7 @@ export function atomicSequence(): StructureQuery {
 
             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 {
             if (P.entity.type(l) !== 'water') continue;
             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 {
 
             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 {
             if (unit.kind !== Unit.Kind.Spheres) continue;
             units.push(unit);
         }
-        return StructureSelection.Singletons(inputStructure, new Structure(units, inputStructure));
+        return StructureSelection.Singletons(inputStructure, new Structure(units, { parent: inputStructure }));
     };
 }