mocked up a prototype of decoding data into the node graph

This commit is contained in:
itsmattkc
2019-08-04 14:45:17 +10:00
parent fb8d5df24b
commit 298ae2f36c
15 changed files with 178 additions and 32 deletions
+14
View File
@@ -23,6 +23,7 @@
#include "output.h"
NodeInput::NodeInput() :
keyframing_(false),
can_accept_multiple_inputs_(false)
{
// Have at least one keyframe/value active at any time
@@ -87,6 +88,19 @@ QVariant NodeInput::get_value(const rational &time)
}
}
void NodeInput::set_value(const rational &time, const QVariant &value)
{
if (keyframing()) {
// FIXME: Keyframing code
Q_UNUSED(time)
} else {
keyframes_.first().set_value(value);
// FIXME: Put correct values here
emit ValueChanged(0, 0);
}
}
bool NodeInput::keyframing()
{
return keyframing_;