added full rational class

This commit is contained in:
itsmattkc
2019-05-17 19:59:26 +10:00
parent c616bc2b61
commit 00d3a4f105
6 changed files with 511 additions and 13 deletions
+10
View File
@@ -136,6 +136,11 @@ bool NodeIO::IsKeyframable()
return keyframable_;
}
QVariant NodeIO::GetValue()
{
return GetValueAt(0);
}
QVariant NodeIO::GetValueAt(double timecode)
{
if (FieldCount() == 0) {
@@ -147,6 +152,11 @@ QVariant NodeIO::GetValueAt(double timecode)
return Field(0)->GetValueAt(timecode);
}
void NodeIO::SetValue(const QVariant &value)
{
SetValueAt(0, value);
}
void NodeIO::SetValueAt(double timecode, const QVariant &value)
{
if (FieldCount() == 0) {