Procházet zdrojové kódy

debugging wrapValue in helper.ts : property.head -> property.head.name : This enables secondary structure selection for VMD via valuesTest in helper.ts

yakomaxa před 2 roky
rodič
revize
4b6f539ba3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/mol-script/transpilers/helper.ts

+ 1 - 1
src/mol-script/transpilers/helper.ts

@@ -337,7 +337,7 @@ export function asAtoms(e: Expression) {
 }
 
 export function wrapValue(property: any, value: any, sstrucDict?: any) {
-    switch (property.head) {
+    switch (property.head.name) {
         case 'structure-query.atom-property.macromolecular.label_atom_id':
             return B.atomName(value);
         case 'structure-query.atom-property.core.element-symbol':