arranged items so they are inputs of folder rather than outputs

This commit is contained in:
itsmattkc
2021-03-12 12:22:19 +11:00
parent c885fbac5c
commit 500fb58d49
26 changed files with 281 additions and 309 deletions
+3 -2
View File
@@ -65,6 +65,7 @@
#include "widget/menu/menushared.h"
#include "widget/taskview/taskviewitem.h"
#include "widget/viewer/viewer.h"
#include "widget/nodeparamview/nodeparamviewundo.h"
#include "window/mainwindow/mainstatusbar.h"
#include "window/mainwindow/mainwindow.h"
@@ -370,7 +371,7 @@ void Core::CreateNewFolder()
MultiUndoCommand* command = new MultiUndoCommand();
command->add_child(new NodeAddCommand(active_project, new_folder));
command->add_child(new NodeEdgeAddCommand(folder, NodeInput(new_folder, Item::kParentInput)));
command->add_child(new FolderAddChild(folder, new_folder));
Core::instance()->undo_stack()->push(command);
@@ -405,7 +406,7 @@ void Core::CreateNewSequence()
MultiUndoCommand* command = new MultiUndoCommand();
command->add_child(new NodeAddCommand(active_project, new_sequence));
command->add_child(new NodeEdgeAddCommand(GetSelectedFolderInActiveProject(), NodeInput(new_sequence, Item::kParentInput)));
command->add_child(new FolderAddChild(GetSelectedFolderInActiveProject(), new_sequence));
// Create and connect default nodes to new sequence
new_sequence->add_default_nodes(command);