made node edge changes undoable

This commit is contained in:
itsmattkc
2019-07-17 00:14:49 -04:00
parent a78cc3950a
commit 39256fd6f9
15 changed files with 318 additions and 12 deletions
+3
View File
@@ -33,6 +33,7 @@
#include "mainmenu.h"
// FIXME: Test code
#include "node/input/image/image.h"
#include "node/output/viewer/viewer.h"
#include "node/generator/solid/solid.h"
// End test code
@@ -89,6 +90,8 @@ void olive::MainWindow::ProjectOpen(Project* p)
SolidGenerator* sg = new SolidGenerator();
NodeInput::ConnectEdge(sg->texture_output(), vo->texture_input());
graph->AddNode(sg);
ImageInput* ii = new ImageInput();
graph->AddNode(ii);
task_panel->SetGraph(graph);
// End test code
}