Commit 51a76fb9 authored by David Gobbi's avatar David Gobbi

Add missing Modified calls to vtkImagePlaneWidget

The margin and cursor actors were not updating during interaction.
This calls Modified() on the point arrays to update the buffers.
parent 136f119d
......@@ -2192,6 +2192,7 @@ void vtkImagePlaneWidget::UpdateCursor(int X, int Y )
cursorPts->SetPoint(1,b);
cursorPts->SetPoint(2,c);
cursorPts->SetPoint(3,d);
cursorPts->GetData()->Modified();
this->CursorPolyData->Modified();
}
......@@ -2910,6 +2911,7 @@ void vtkImagePlaneWidget::UpdateMargins()
marginPts->SetPoint(5,b);
marginPts->SetPoint(6,c);
marginPts->SetPoint(7,d);
marginPts->GetData()->Modified();
this->MarginPolyData->Modified();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment