From 73fa6d76b36c1012dd0c35f6419bb983f0195367 Mon Sep 17 00:00:00 2001
From: Mathias Paulin <Mathias.Paulin@irit.fr>
Date: Tue, 22 Feb 2022 12:54:28 +0100
Subject: [PATCH] [librender] add forgotten connection operations when opening
 graph editor

---
 src/libRender/RadiumNBR/Gui/NodeGraphControllerGui.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/libRender/RadiumNBR/Gui/NodeGraphControllerGui.cpp b/src/libRender/RadiumNBR/Gui/NodeGraphControllerGui.cpp
index a9b165f..d62495e 100644
--- a/src/libRender/RadiumNBR/Gui/NodeGraphControllerGui.cpp
+++ b/src/libRender/RadiumNBR/Gui/NodeGraphControllerGui.cpp
@@ -140,6 +140,7 @@ buildNodeGraphControllerGui( NodeBasedRenderer* renderer,
                         {
                             std::cerr << "Loading nodegraph " << renderer->getJsonFilePath()
                                       << " in the editor." << std::endl;
+                            nodeEditor->disconnectAll();
                             nodeEditor->scene->clearScene();
                             renderer->getRenderGraph()->clearNodes();
                             QByteArray wholeFile = file.readAll();
@@ -150,6 +151,7 @@ buildNodeGraphControllerGui( NodeBasedRenderer* renderer,
                                                                      " - " +
                                                                      renderer->getJsonFilePath() )
                                                             .c_str() );
+                            nodeEditor->connectAll();
                         }
                     }
                 }
-- 
GitLab