Browse Source

fix volume isosurface picking

Alexander Rose 4 years ago
parent
commit
ae7811705d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mol-repr/volume/util.ts

+ 1 - 1
src/mol-repr/volume/util.ts

@@ -17,7 +17,7 @@ export function eachVolumeLoci(loci: Loci, volume: Volume, isoValue: Volume.IsoV
     } else if (Volume.Isosurface.isLoci(loci)) {
         if (!Volume.areEquivalent(loci.volume, volume)) return false;
         if (isoValue) {
-            if (Volume.IsoValue.areSame(loci.isoValue, isoValue, volume.grid.stats)) return false;
+            if (!Volume.IsoValue.areSame(loci.isoValue, isoValue, volume.grid.stats)) return false;
             if (apply(Interval.ofLength(volume.grid.cells.data.length))) changed = true;
         } else {
             // TODO find a cheaper way?