fix(sr): correct jump to first image via viewRef (#4576)
This commit is contained in:
1 parent
6c7f535676
commit
6ec04ca65e
6 files changed
+20
-37
No files matched your search
@@ -441,8 +441,9 @@ class SegmentationService extends PubSubService {
|
||||
|
||||
const segmentIndex = Number(SegmentNumber);
|
||||
|
||||
const imageCentroidXYZ = segDisplaySet.centroids.get(index).image || { x: 0, y: 0, z: 0 };
|
||||
const worldCentroidXYZ = segDisplaySet.centroids.get(index).world || { x: 0, y: 0, z: 0 };
|
||||
const centroid = segDisplaySet.centroids?.get(index);
|
||||
const imageCentroidXYZ = centroid?.image || { x: 0, y: 0, z: 0 };
|
||||
const worldCentroidXYZ = centroid?.world || { x: 0, y: 0, z: 0 };
|
||||
|
||||
segments[segmentIndex] = {
|
||||
segmentIndex,
|
||||
|
||||
Reference in new issue
Block a user