fixed timeline crash

This commit is contained in:
itsmattkc
2021-10-25 14:54:48 -07:00
parent 4ed9ba5475
commit 6543512d00
2 changed files with 11 additions and 4 deletions
+4
View File
@@ -325,6 +325,10 @@ Block *Track::NearestBlockBefore(const rational &time) const
{
foreach (Block* block, blocks_) {
// Blocks are sorted by time, so the first Block who's out point is at/after this time is the correct Block
if (block->in() == time) {
break;
}
if (block->out() >= time) {
return block;
}