Skip to content
Snippets Groups Projects
Commit 73fa6d76 authored by Mathias Paulin's avatar Mathias Paulin :speech_balloon:
Browse files

[librender] add forgotten connection operations when opening graph editor

parent 60702179
No related branches found
No related tags found
No related merge requests found
...@@ -140,6 +140,7 @@ buildNodeGraphControllerGui( NodeBasedRenderer* renderer, ...@@ -140,6 +140,7 @@ buildNodeGraphControllerGui( NodeBasedRenderer* renderer,
{ {
std::cerr << "Loading nodegraph " << renderer->getJsonFilePath() std::cerr << "Loading nodegraph " << renderer->getJsonFilePath()
<< " in the editor." << std::endl; << " in the editor." << std::endl;
nodeEditor->disconnectAll();
nodeEditor->scene->clearScene(); nodeEditor->scene->clearScene();
renderer->getRenderGraph()->clearNodes(); renderer->getRenderGraph()->clearNodes();
QByteArray wholeFile = file.readAll(); QByteArray wholeFile = file.readAll();
...@@ -150,6 +151,7 @@ buildNodeGraphControllerGui( NodeBasedRenderer* renderer, ...@@ -150,6 +151,7 @@ buildNodeGraphControllerGui( NodeBasedRenderer* renderer,
" - " + " - " +
renderer->getJsonFilePath() ) renderer->getJsonFilePath() )
.c_str() ); .c_str() );
nodeEditor->connectAll();
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment