use strings to connect nodes

This makes the node system somewhat more high-level with the intent of making
working with them far more flexible and stable. By making the architecture more
abstracted, it becomes far less rigid which should allow us to do even more
with it and make it much less crash prone.
This commit is contained in:
itsmattkc
2021-02-09 15:48:37 +11:00
parent d1a3e22eaa
commit 81c1922911
138 changed files with 4487 additions and 3913 deletions
+4 -11
View File
@@ -23,6 +23,7 @@
#include <QXmlStreamReader>
#include "node/param.h"
#include "project/item/footage/stream.h"
#include "undo/undocommand.h"
@@ -38,15 +39,9 @@ class NodeInput;
struct XMLNodeData {
struct SerializedConnection {
NodeInput* input;
int element;
quintptr output;
};
struct FootageConnection {
NodeInput* input;
int element;
quintptr footage;
NodeInput input;
quintptr output_node;
QString output;
};
struct BlockLink {
@@ -56,8 +51,6 @@ struct XMLNodeData {
QHash<quintptr, Node*> node_ptrs;
QList<SerializedConnection> desired_connections;
QHash<quintptr, Stream*> footage_ptrs;
QList<FootageConnection> footage_connections;
QList<BlockLink> block_links;
QHash<quintptr, Item*> item_ptrs;