소스 검색

StructureHierarchyManager tweak

David Sehnal 5 년 전
부모
커밋
d03a442b6c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/mol-plugin-state/manager/structure.ts

+ 4 - 0
src/mol-plugin-state/manager/structure.ts

@@ -34,6 +34,10 @@ export class StructureHierarchyManager {
             newCurrent.push(ref);
         }
 
+        if (newCurrent.length === 0 && hierarchy.trajectories[0]?.models) {
+            this.behaviors.currentModels.next(hierarchy.trajectories[0]?.models);
+        }
+
         this.behaviors.currentModels.next(newCurrent);
     }