Commit 0d869a3f authored by Marcus D. Hanwell's avatar Marcus D. Hanwell

BUG: Fixed interaction in 2D scenes after refactoring.

parent b5049905
......@@ -47,10 +47,12 @@ vtkContextView::vtkContextView()
this->Scene->Register(this);
// Should not need to do this...
this->Scene->SetRenderer(this->Renderer);
this->Scene->SetInteractorStyle(
vtkInteractorStyle::SafeDownCast(this->RenderWindow->GetInteractor()
->GetInteractorStyle()));
// Single color background
this->Renderer->SetBackground(1.0, 1.0, 1.0);
this->Renderer->SetBackground2(1.0, 1.0, 1.0);
}
//----------------------------------------------------------------------------
......
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