Преглед изворни кода

mol-plugin: fix Volume streaming when clearing state

David Sehnal пре 4 година
родитељ
комит
e67c610b84
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      src/mol-plugin/behavior/dynamic/volume-streaming/behavior.ts

+ 2 - 0
src/mol-plugin/behavior/dynamic/volume-streaming/behavior.ts

@@ -235,6 +235,8 @@ export namespace VolumeStreaming {
             });
             });
 
 
             this.subscribeObservable(this.plugin.managers.structure.focus.behaviors.current, (entry) => {
             this.subscribeObservable(this.plugin.managers.structure.focus.behaviors.current, (entry) => {
+                if (!this.plugin.state.data.tree.children.has(this.ref)) return;
+
                 const loci = entry ? entry.loci : EmptyLoci;
                 const loci = entry ? entry.loci : EmptyLoci;
 
 
                 if (this.params.entry.params.view.name !== 'selection-box') {
                 if (this.params.entry.params.view.name !== 'selection-box') {