From e67c610b84ebf944412e69186651dde6bc89114a Mon Sep 17 00:00:00 2001 From: David Sehnal <david.sehnal@gmail.com> Date: Wed, 27 May 2020 19:40:00 +0200 Subject: [PATCH] mol-plugin: fix Volume streaming when clearing state --- src/mol-plugin/behavior/dynamic/volume-streaming/behavior.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mol-plugin/behavior/dynamic/volume-streaming/behavior.ts b/src/mol-plugin/behavior/dynamic/volume-streaming/behavior.ts index b0d271f70..b6c8d2437 100644 --- a/src/mol-plugin/behavior/dynamic/volume-streaming/behavior.ts +++ b/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') { -- GitLab