Browse Source

getSliceLoci tweak

dsehnal 2 years ago
parent
commit
c5f987d8b2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/mol-repr/volume/slice.ts

+ 2 - 0
src/mol-repr/volume/slice.ts

@@ -153,6 +153,8 @@ function getSliceLoci(pickingId: PickingId, volume: Volume, props: PD.Values<Sli
         const granularity = Volume.PickingGranularity.get(volume);
         if (granularity === 'volume') {
             return Volume.Loci(volume);
+        } if (granularity === 'object') {
+            return getLoci(volume, props);
         } else {
             return Volume.Cell.Loci(volume, Interval.ofSingleton(groupId as Volume.CellIndex));
         }