timeline: make sure track length is updated if a block is disconnected

This commit is contained in:
itsmattkc
2020-04-27 14:01:44 +10:00
parent ac3f49a845
commit 690bdb6581
+1 -3
View File
@@ -556,9 +556,7 @@ void TrackOutput::BlockDisconnected(NodeEdgePtr edge)
block_cache_.removeAt(index_of_block);
// If there were blocks following this one, update their ins/outs
if (index_of_block < block_cache_.size()) {
UpdateInOutFrom(index_of_block);
}
UpdateInOutFrom(index_of_block);
// Join the previous and next blocks together
if (connected_block->previous()) {