소스 검색

fix traceOnly handling in makeElementIgnoreTest

Alexander Rose 3 년 전
부모
커밋
47968eeeec
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/mol-repr/structure/visual/util/element.ts

+ 1 - 1
src/mol-repr/structure/visual/util/element.ts

@@ -46,7 +46,7 @@ export function makeElementIgnoreTest(structure: Structure, unit: Unit, props: E
     const childUnit = child?.unitMap.get(unit.id);
     if (child && !childUnit) throw new Error('expected childUnit to exist if child exists');
 
-    if (!child && ((!ignoreHydrogens && !traceOnly) || traceOnly)) return;
+    if (!child && !ignoreHydrogens && !traceOnly) return;
 
     return (element: ElementIndex) => {
         return (