Skip to content

Commit 7b41334

Browse files
segments pointers
1 parent b74c0b5 commit 7b41334

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

molstar-extension/src/common.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ export async function actionShowSegments(segmentKeys: string[], model: VolsegEnt
5252
const allExistingGeometricSegmentationIds = model.metadata.value!.raw.grid.geometric_segmentation!.segmentation_ids;
5353
if (segmentKeys.length === 0) {
5454
for (const id of allExistingLatticeSegmentationIds) {
55-
await showSegments([], id, 'lattice', model);
55+
await showSegments({ segmentIds: [], segmentationId: id, kind: 'lattice' }, model);
5656
}
5757
for (const id of allExistingMeshSegmentationIds) {
58-
await showSegments([], id, 'mesh', model);
58+
await showSegments({ segmentIds: [], segmentationId: id, kind: 'mesh' }, model);
5959
}
6060
for (const id of allExistingGeometricSegmentationIds) {
61-
await showSegments([], id, 'primitive', model);
61+
await showSegments({ segmentIds: [], segmentationId: id, kind: 'primitive' }, model);
6262
}
6363
}
6464
const parsedSegmentKeys = segmentKeys.map(
@@ -93,7 +93,7 @@ export async function _actionShowSegments(parsedSegmentKeys: ParsedSegmentKey[],
9393
}
9494
const promises: Promise<void>[] = [];
9595
SegmentationIdsToSegmentIds.forEach((value, key) => {
96-
promises.push(showSegments(value, key, kind, model));
96+
promises.push(showSegments({ segmentIds: value, segmentationId: key, kind: kind }, model));
9797
});
9898
await Promise.all(promises);
9999
}

0 commit comments

Comments
 (0)