reworked all timeline commands

I'll be honest, this stuff probably caused a lot of crashes. Objects were constantly created and destroyed without the foresight that other commands might be using them. This should fix a lot of that.
This commit is contained in:
itsmattkc
2021-01-15 14:36:21 +11:00
parent 96c0921193
commit 91740dd823
11 changed files with 1990 additions and 1912 deletions
+1
View File
@@ -31,6 +31,7 @@ Block::Block() :
previous_(nullptr),
next_(nullptr),
track_(nullptr),
index_(-1),
in_transition_(nullptr),
out_transition_(nullptr)
{
+11
View File
@@ -165,6 +165,16 @@ public:
out_transition_ = t;
}
int index() const
{
return index_;
}
void set_index(int i)
{
index_ = i;
}
virtual void Hash(QCryptographicHash &hash, const rational &time) const override;
public slots:
@@ -201,6 +211,7 @@ private:
rational in_point_;
rational out_point_;
Track* track_;
int index_;
TransitionBlock* in_transition_;
TransitionBlock* out_transition_;