added clone functions for nodes

Since nodes are are extremely derivative types, we use a clone/copy function
to produce new types of the derived class easily.
This commit is contained in:
itsmattkc
2019-11-22 16:53:30 +09:00
parent 2599c1e8a4
commit 492c8f474a
23 changed files with 69 additions and 7 deletions
+1 -1
View File
@@ -25,7 +25,7 @@
#include <QDebug>
Block* CreateSplitBlock(Block* block, rational point, QObject* parent = nullptr)
{
Block* copy = block->copy();
Block* copy = static_cast<Block*>(block->copy());
copy->set_length_and_media_in(block->length() - (point - block->in()));
copy->setParent(parent);