don't automatically create gaps if one already exists that can be resized
Rather than constantly create gaps, we can more intelligently determine whether a gap can be extended to take the place of a block being removed, etc.
This commit is contained in:
@@ -184,6 +184,14 @@ void TimelineViewGhostItem::SetMode(const olive::timeline::MovementMode &mode)
|
||||
mode_ = mode;
|
||||
}
|
||||
|
||||
bool TimelineViewGhostItem::HasBeenAdjusted() const
|
||||
{
|
||||
return InAdjustment() != 0
|
||||
|| OutAdjustment() != 0
|
||||
|| MediaInAdjustment() != 0
|
||||
|| TrackAdjustment() != 0;
|
||||
}
|
||||
|
||||
void TimelineViewGhostItem::UpdateRect()
|
||||
{
|
||||
rational length = GetAdjustedOut() - GetAdjustedIn();
|
||||
|
||||
Reference in New Issue
Block a user