mocked up a prototype of decoding data into the node graph
This commit is contained in:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user