diff --git a/app/node/project/footage/footage.cpp b/app/node/project/footage/footage.cpp index 4a5e5f0a5..0832b2f0a 100644 --- a/app/node/project/footage/footage.cpp +++ b/app/node/project/footage/footage.cpp @@ -294,7 +294,7 @@ void Footage::Value(const NodeValueRow &value, const NodeGlobals &globals, NodeV type = NodeValue::kSamples; } - table->Push(type, QVariant::fromValue(job), this, false, ref.ToString()); + table->Push(type, QVariant::fromValue(job), this, ref.ToString()); } } } diff --git a/app/node/value.h b/app/node/value.h index 88db6ebf0..2a0b14620 100644 --- a/app/node/value.h +++ b/app/node/value.h @@ -208,6 +208,12 @@ public: set_value(data); } + template + NodeValue(Type type, const T& data, const Node* from, const QString& tag) : + NodeValue(type, data, from, false, tag) + { + } + Type type() const { return type_; @@ -331,6 +337,7 @@ public: QVector3D toVec3() const { return value(); } QVector4D toVec4() const { return value(); } Bezier toBezier() const { return value(); } + QVector toArray() const { return value >(); } private: Type type_; @@ -378,6 +385,12 @@ public: Push(NodeValue(type, data, from, array, tag)); } + template + void Push(NodeValue::Type type, const T& data, const Node *from, const QString& tag) + { + Push(NodeValue(type, data, from, false, tag)); + } + void Prepend(const NodeValue& value) { values_.prepend(value); @@ -389,6 +402,12 @@ public: Prepend(NodeValue(type, data, from, array, tag)); } + template + void Prepend(NodeValue::Type type, const T& data, const Node *from, const QString& tag) + { + Prepend(NodeValue(type, data, from, false, tag)); + } + const NodeValue& at(int index) const { return values_.at(index);