ソースを参照

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

yakomaxa 2 年 前
コミット
4b6f539ba3
1 ファイル変更1 行追加1 行削除
  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':