cleared up some broken stuff for now

This commit is contained in:
itsmattkc
2019-08-13 21:55:10 +10:00
parent 4f4737a395
commit b4529205b9
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -250,6 +250,10 @@ void TimelineOutput::PlaceBlock(Block *block, rational start)
{
AddBlockToGraph(block);
if (block->in() == start) {
return;
}
// Place block at the beginning
if (start == 0) {
// FIXME: Remove existing
+3
View File
@@ -65,6 +65,7 @@ void TimelineView::PointerTool::MouseMove(QMouseEvent *event)
ghost->SetIn(clip->in());
ghost->SetOut(clip->out());
ghost->SetScale(parent()->scale_);
ghost->SetData(Node::PtrToValue(clip));
ghost->setPos(clip_item->pos());
@@ -105,11 +106,13 @@ void TimelineView::PointerTool::MouseRelease(QMouseEvent *event)
parent()->QGraphicsView::mouseReleaseEvent(event);
/*
foreach (TimelineViewGhostItem* ghost, parent()->ghost_items_) {
Block* b = Node::ValueToPtr<Block>(ghost->data());
emit parent()->RequestPlaceBlock(b, ghost->In());
}
*/
parent()->ClearGhosts();