only allow splitting clips

This commit is contained in:
itsmattkc
2020-01-07 19:04:24 +11:00
parent a616aaa182
commit d9572fa4e5
5 changed files with 5 additions and 10 deletions
+1
View File
@@ -67,6 +67,7 @@ void TimelineWidget::RazorTool::MouseRelease(TimelineViewMouseEvent *event)
// Ensure there's a valid block here
if (block_at_time
&& block_at_time->type() == Block::kClip
&& !blocks_to_split.contains(block_at_time)) {
blocks_to_split.append(block_at_time);