@@ -52,13 +52,13 @@ export async function actionShowSegments(segmentKeys: string[], model: VolsegEnt
52
52
const allExistingGeometricSegmentationIds = model . metadata . value ! . raw . grid . geometric_segmentation ! . segmentation_ids ;
53
53
if ( segmentKeys . length === 0 ) {
54
54
for ( const id of allExistingLatticeSegmentationIds ) {
55
- await showSegments ( [ ] , id , 'lattice' , model ) ;
55
+ await showSegments ( { segmentIds : [ ] , segmentationId : id , kind : 'lattice' } , model ) ;
56
56
}
57
57
for ( const id of allExistingMeshSegmentationIds ) {
58
- await showSegments ( [ ] , id , 'mesh' , model ) ;
58
+ await showSegments ( { segmentIds : [ ] , segmentationId : id , kind : 'mesh' } , model ) ;
59
59
}
60
60
for ( const id of allExistingGeometricSegmentationIds ) {
61
- await showSegments ( [ ] , id , 'primitive' , model ) ;
61
+ await showSegments ( { segmentIds : [ ] , segmentationId : id , kind : 'primitive' } , model ) ;
62
62
}
63
63
}
64
64
const parsedSegmentKeys = segmentKeys . map (
@@ -93,7 +93,7 @@ export async function _actionShowSegments(parsedSegmentKeys: ParsedSegmentKey[],
93
93
}
94
94
const promises : Promise < void > [ ] = [ ] ;
95
95
SegmentationIdsToSegmentIds . forEach ( ( value , key ) => {
96
- promises . push ( showSegments ( value , key , kind , model ) ) ;
96
+ promises . push ( showSegments ( { segmentIds : value , segmentationId : key , kind : kind } , model ) ) ;
97
97
} ) ;
98
98
await Promise . all ( promises ) ;
99
99
}
0 commit comments