began some rewrites to timeline drawing

This commit is contained in:
itsmattkc
2021-01-14 10:30:20 +11:00
parent fbdda3d6d4
commit f7883bd02c
60 changed files with 3134 additions and 951 deletions
+3 -3
View File
@@ -123,12 +123,12 @@ NodeValueTable NodeTraverser::GenerateTable(const Node *n, const rational &in, c
NodeValueTable NodeTraverser::GenerateBlockTable(const Track *track, const TimeRange &range)
{
// By default, just follow the in point
int active_block = track->BlockAtTime(range.in());
Block* active_block = track->BlockAtTime(range.in());
NodeValueTable table;
if (active_block >= 0) {
table = GenerateTable(track->Blocks().at(active_block).block, range);
if (active_block) {
table = GenerateTable(active_block, range);
}
return table;