Jelajahi Sumber

fix volume streaming with custom props enabled

David Sehnal 5 tahun lalu
induk
melakukan
eb448bce37

+ 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