fixed signal/slot connections which had been renamed and weren't resolving

This commit is contained in:
itsmattkc
2019-12-06 00:43:51 +11:00
parent d25dda5275
commit 50f7fac156
14 changed files with 40 additions and 19 deletions
+8 -4
View File
@@ -116,7 +116,13 @@ void ViewerOutput::set_audio_params(const AudioParams &audio)
rational ViewerOutput::Length()
{
// FIXME: This is pretty messy, there's probably a better way...
return length_input_->get_connected_node()->Value(NodeValueDatabase()).Get(NodeParam::kRational).value<rational>();
Node* connected_node = length_input_->get_connected_node();
if (connected_node) {
return connected_node->Value(NodeValueDatabase()).Get(NodeParam::kNumber).value<rational>();
}
return 0;
}
void ViewerOutput::DependentEdgeChanged(NodeInput *from)
@@ -127,7 +133,5 @@ void ViewerOutput::DependentEdgeChanged(NodeInput *from)
emit AudioGraphChanged();
}
// NOTE: This node technically has no outputs so default behavior is unnecessary, but if this node gets outputs some
// day this should be uncommented
//Node::DependentEdgeChanged(from);
Node::DependentEdgeChanged(from);
}
+2
View File
@@ -64,4 +64,6 @@ private:
};
Q_DECLARE_METATYPE(NodeValueTable)
#endif // VALUE_H