diff --git a/src/gui/render/RenderController.cpp b/src/gui/render/RenderController.cpp index 9c371a275..0ff5168f8 100644 --- a/src/gui/render/RenderController.cpp +++ b/src/gui/render/RenderController.cpp @@ -11,11 +11,13 @@ RenderController::RenderController(Simulation *sim, Renderer * ren, RendererSett renderView = new RenderView(); renderModel = new RenderModel(); + renderModel->SetRenderer(ren, rendererSettings); + renderView->AttachController(this); renderModel->AddObserver(renderView); - renderModel->SetRenderer(ren, rendererSettings); renderModel->SetSimulation(sim); + onDone = onDone_; }