don't police data type connections between nodes

Nodes were previously written to be "strongly typed" in that a parameter's
"type" enforced whether it could be connected to another. All code related
to that has now been removed since not only is it hard to maintain and
likely unnecessary, it's possible the nodes will work differently later on
anyway.
This commit is contained in:
itsmattkc
2019-10-25 00:44:14 +11:00
parent 076f2699c5
commit 4d96ac9e39
24 changed files with 83 additions and 249 deletions
+5 -11
View File
@@ -39,15 +39,6 @@ public:
*/
virtual Type type() override;
/**
* @brief The data type this parameter outputs
*
* This can be used in conjunction with NodeInput::can_accept_type() to determine whether this parameter can be
* connected to it.
*/
virtual DataType data_type() override;
void set_data_type(const DataType& type);
/**
* @brief Get the value of this output at a given tie
*
@@ -65,11 +56,14 @@ public:
void push_value(const QVariant& v, const rational& in, const rational &out);
private:
DataType data_type_;
NodeInput* linked_input();
void set_linked_input(NodeInput* link);
private:
QMutex mutex_;
NodeInput* linked_input_;
};
#endif // NODEOUTPUT_H