]> Creatis software - clitk.git/blobdiff - vv/vvSlicer.cxx
Debug 4D playing with Overlay or Fusion:
[clitk.git] / vv / vvSlicer.cxx
index db4b0cf525811c16c20b2742fc081d3c06be4336..7efaf2675c4caa351f090d1ce2de2a5d3e397972 100644 (file)
@@ -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;
 }