updated nodes for new input structure
Since all NodeInputs will generally only need their data type and default value set once, we place it all into the constructor for cleaner and easier to manage code.
This commit is contained in:
@@ -7,7 +7,7 @@ class NodeInputArray : public NodeInput
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
NodeInputArray(const QString &id);
|
||||
NodeInputArray(const QString &id, const DataType& type, const QVariant& default_value = 0);
|
||||
|
||||
virtual bool IsArray() override;
|
||||
|
||||
@@ -34,6 +34,8 @@ signals:
|
||||
private:
|
||||
QVector<NodeInput*> sub_params_;
|
||||
|
||||
QVariant default_value_;
|
||||
|
||||
};
|
||||
|
||||
#endif // INPUTARRAY_H
|
||||
|
||||
Reference in New Issue
Block a user