From 75674d28faaaa08a3725309c42093483ce6d6a54 Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Tue, 31 May 2011 15:05:59 +0200 Subject: [PATCH] Always UpdateCursorPosition even if ImageActor is not visible, drawing of slicer is handled by the renderer draw mode --- vv/vvSlicer.cxx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index 22f0eed..bb83a25 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -1296,13 +1296,11 @@ void vvSlicer::Render() //---------------------------------------------------------------------------- void vvSlicer::UpdateCursorPosition() { - if (this->GetImageActor()->GetVisibility()) { - pdmA->SetVisibility(true); - mCursor[0] = mCurrent[0]; - mCursor[1] = mCurrent[1]; - mCursor[2] = mCurrent[2]; - mCursor[3] = mCurrentTSlice; - } + pdmA->SetVisibility(true); + mCursor[0] = mCurrent[0]; + mCursor[1] = mCurrent[1]; + mCursor[2] = mCurrent[2]; + mCursor[3] = mCurrentTSlice; } //---------------------------------------------------------------------------- -- 2.45.1