fixed splitting bug

This commit is contained in:
itsmattkc
2019-09-24 14:45:42 +10:00
parent 85c9687f91
commit ef39151b53
4 changed files with 16 additions and 8 deletions
+2
View File
@@ -22,12 +22,14 @@
#include "node/graph.h"
#include <QDebug>
Block* CreateSplitBlock(Block* block, rational point, QObject* parent = nullptr)
{
Block* copy = block->copy();
copy->set_length_and_media_in(block->length() - (point - block->in()));
copy->setParent(parent);
return copy;
}