dsehnal преди 2 години
родител
ревизия
c5f987d8b2
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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));
         }