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:
+5
-11
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user