effects system rewrite

This commit is contained in:
itsmattkc
2018-10-30 11:23:14 +11:00
parent 0817a1e486
commit 10347f9418
16 changed files with 327 additions and 144 deletions
+3 -3
View File
@@ -193,9 +193,9 @@ void SetTimelineInOutCommand::redo() {
mainWindow->setWindowModified(true);
}
AddEffectCommand::AddEffectCommand(Clip* c, int ieffect) :
AddEffectCommand::AddEffectCommand(Clip* c, EffectMeta *e) :
clip(c),
effect(ieffect),
meta(e),
ref(NULL),
done(false),
old_project_changed(mainWindow->isWindowModified())
@@ -213,7 +213,7 @@ void AddEffectCommand::undo() {
void AddEffectCommand::redo() {
if (ref == NULL) {
ref = create_effect(effect, clip);
ref = new Effect(clip, *meta);
}
clip->effects.append(ref);
done = true;