diff --git a/src/mol-repr/volume/util.ts b/src/mol-repr/volume/util.ts index 0c4957746e366ad187c4c0b83e922beb6d94e559..9ab2e583c581b6e68b12da42c6b26c487c657851 100644 --- a/src/mol-repr/volume/util.ts +++ b/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?