fixed transition regression

This commit is contained in:
itsmattkc
2022-11-01 21:04:44 -07:00
parent 451de7030b
commit 073e9fdb0e
2 changed files with 20 additions and 3 deletions
+6 -1
View File
@@ -292,7 +292,12 @@ TimeRange TransitionBlock::InputTimeAdjustment(const QString &input, int element
if (input == kInBlockInput || input == kOutBlockInput) {
Block* block = dynamic_cast<Block*>(GetConnectedOutput(input));
if (block) {
return input_time + in() - block->in();
TimeRange range = input_time;
if (clamp) {
range.set_range(std::max(rational(0), range.in()), std::min(this->length(), range.out()));
}
range = range + in() - block->in();
return range;
}
}