From 46d6314164abf444b420f07539b8f7cbd817f88e Mon Sep 17 00:00:00 2001 From: tbaudier Date: Wed, 18 May 2016 10:39:39 +0200 Subject: [PATCH] Debug ROI display if contour display was checked and ROI unchecked, the ROI was displayed Now just contours are displayed --- vv/vvROIActor.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vv/vvROIActor.cxx b/vv/vvROIActor.cxx index 52ddea5..cfb965d 100644 --- a/vv/vvROIActor.cxx +++ b/vv/vvROIActor.cxx @@ -249,7 +249,9 @@ void vvROIActor::UpdateSlice(int slicer, int slices, int force) } // Refresh overlays - mOverlayActors[slicer]->UpdateSlice(slicer, slices, force); + if (mIsVisible) { + mOverlayActors[slicer]->UpdateSlice(slicer, slices, force); + } mSlicerManager->GetSlicer(slicer)->Render(); } //------------------------------------------------------------------------------ -- 2.47.1