Quellcode durchsuchen

mol-plugin: fix Volume streaming when clearing state

David Sehnal vor 4 Jahren
Ursprung
Commit
e67c610b84
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  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) => {
+                if (!this.plugin.state.data.tree.children.has(this.ref)) return;
+
                 const loci = entry ? entry.loci : EmptyLoci;
 
                 if (this.params.entry.params.view.name !== 'selection-box') {