timenode: implemented timenode to allow values to be connected to time

This commit is contained in:
itsmattkc
2020-04-03 23:27:38 +11:00
parent 378c354277
commit 3dd91a1429
7 changed files with 97 additions and 0 deletions
+6
View File
@@ -29,6 +29,12 @@ NodeValueDatabase NodeTraverser::GenerateDatabase(const Node* node, const TimeRa
}
}
// Insert global variables
NodeValueTable global;
global.Push(NodeParam::kFloat, range.in().toDouble(), QStringLiteral("time_in"));
global.Push(NodeParam::kFloat, range.out().toDouble(), QStringLiteral("time_out"));
database.Insert(QStringLiteral("global"), global);
return database;
}