From: tbaudier Date: Thu, 10 Nov 2016 13:04:49 +0000 (+0100) Subject: Debug 4D playing with Overlay or Fusion: X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=ac3b981712ff4d47eb17132d3eed06ce29db71a6;p=clitk.git Debug 4D playing with Overlay or Fusion: Now even if the Overlay/Fusion isn't display, the time for 4D playing always start at 0 --- diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index db4b0cf..7efaf26 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -916,9 +916,9 @@ int vvSlicer::GetTSlice() int vvSlicer::GetMaxCurrentTSlice() { int t = mCurrentTSlice; - if(mOverlay) + if(mOverlay && mOverlayActor->GetVisibility()) t = std::max(t, mCurrentOverlayTSlice); - if(mFusion&& (mFusionSequenceCode<0)) //ignore fusionSequence data: for these, the times are not to be related (this way) + if(mFusion&& (mFusionSequenceCode<0) && mFusionActor->GetVisibility()) //ignore fusionSequence data: for these, the times are not to be related (this way) t = std::max(t, mCurrentFusionTSlice); return t; }