implemented a footage viewer
Essentially a minor derivation of a viewer type that can automatically view footage from the project (i.e. not in a sequence).
This commit is contained in:
@@ -98,7 +98,7 @@ const rational &TimelineOutput::timebase() const
|
||||
NodeValueTable TimelineOutput::Value(const NodeValueDatabase &value) const
|
||||
{
|
||||
NodeValueTable table = value.Merge();
|
||||
table.Push(NodeParam::kRational, QVariant::fromValue(length()));
|
||||
table.Push(NodeParam::kRational, QVariant::fromValue(length()), "length");
|
||||
return table;
|
||||
}
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ rational ViewerOutput::Length()
|
||||
Node* connected_node = length_input_->get_connected_node();
|
||||
|
||||
if (connected_node) {
|
||||
return connected_node->Value(NodeValueDatabase()).Get(NodeParam::kNumber).value<rational>();
|
||||
return connected_node->Value(NodeValueDatabase()).Get(NodeParam::kNumber, "length").value<rational>();
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user