瀏覽代碼

getSliceLoci tweak

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));
         }