fixed obviously wrong function
This function was written incorrectly and would almost always trigger an infinite loop. It's now written correctly and achieves what's intended.
This commit is contained in:
@@ -41,10 +41,10 @@ Node* TakeNodeFromParentGraph(Node* n, QObject* new_parent = nullptr)
|
||||
|
||||
TrackOutput* TrackFromBlock(Block* b)
|
||||
{
|
||||
Block* next = b->next();
|
||||
Block* next = b;
|
||||
|
||||
do {
|
||||
next = b->next();
|
||||
next = next->next();
|
||||
} while (next != nullptr && next->type() != Block::kEnd);
|
||||
|
||||
// A little hacky, but this should either be a TrackOutput* or nullptr
|
||||
|
||||
Reference in New Issue
Block a user