Browse Source

fix volume streaming with custom props enabled

David Sehnal 5 years ago
parent
commit
eb448bce37
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/mol-plugin/behavior/dynamic/volume-streaming/behavior.ts

+ 3 - 1
src/mol-plugin/behavior/dynamic/volume-streaming/behavior.ts

@@ -276,7 +276,9 @@ export namespace VolumeStreaming {
             const parent = this.plugin.helpers.substructureParent.get(loci.structure);
             if (!parent) return Box3D.empty();
             const root = this.getStructureRoot();
-            if (!root || !root.obj || root.obj !== parent.obj) return Box3D.empty();
+            if (!root || !root.obj) return Box3D.empty();
+            const rootParent = this.plugin.helpers.substructureParent.get(root.obj.data);
+            if (parent !== rootParent) return Box3D.empty();
 
             const extendedLoci = StructureElement.Loci.extendToWholeResidues(loci)
             const box = StructureElement.Loci.getBoundary(extendedLoci).box