File tree Expand file tree Collapse file tree
stateManagement/segmentation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ function internalAddSegmentationRepresentation(
4040 if ( segmentKeys . length > 0 ) {
4141 firstSegmentIndex = segmentKeys . map ( ( k ) => Number ( k ) ) . sort ( ) [ 0 ] ;
4242 }
43+ setActiveSegmentIndex ( segmentationId , firstSegmentIndex ) ;
4344 }
44- setActiveSegmentIndex ( segmentationId , firstSegmentIndex ) ;
4545 }
4646
4747 if ( representationInput . type === SegmentationRepresentations . Contour ) {
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ const MAGNIFY_VIEWPORT_INITIAL_RADIUS = 125;
6868const { Events : csEvents } = Enums ;
6969
7070// TODO: find a better to identify segmentation actors
71- const isSegmentation = ( actor ) => actor . uid !== actor . referencedId ;
71+ const isSegmentation = ( actor ) => ! ! actor . representationUID ;
7272
7373export type AutoPanCallbackData = {
7474 points : {
@@ -1355,7 +1355,7 @@ class AdvancedMagnifyViewport {
13551355 const actors = sourceViewport . getActors ( ) ;
13561356 const volumeInputArray : Types . IVolumeInput [ ] = actors
13571357 . filter ( ( actor ) => ! isSegmentation ( actor ) )
1358- . map ( ( actor ) => ( { volumeId : actor . uid } ) ) ;
1358+ . map ( ( actor ) => ( { volumeId : actor . referencedId } ) ) ;
13591359
13601360 magnifyViewport . setVolumes ( volumeInputArray ) . then ( ( ) => {
13611361 this . _isViewportReady = true ;
You can’t perform that action at this time.
0 commit comments