Explorar o código

fix volume isosurface picking

Alexander Rose %!s(int64=4) %!d(string=hai) anos
pai
achega
ae7811705d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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?