From cb9285bbe4a89ab76521f84e0dfe07919eb5d297 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Wed, 21 Aug 2024 20:21:58 -0400 Subject: [PATCH] Fix crash when opening render settings --- src/gui/render/RenderController.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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_; }