connected effect UI to enabled setting

This commit is contained in:
itsmattkc
2019-03-13 22:46:53 +11:00
parent 933cbb0304
commit e3e322ca53
5 changed files with 8 additions and 10 deletions
+1 -1
View File
@@ -154,7 +154,6 @@ public:
int gizmo_count();
bool IsEnabled();
void SetEnabled(bool b);
virtual void refresh();
@@ -214,6 +213,7 @@ public:
static const EffectMeta* GetInternalMeta(int internal_id, int type);
public slots:
void FieldChanged();
void SetEnabled(bool b);
signals:
void EnabledChanged(bool);
private slots:
+2 -1
View File
@@ -102,11 +102,12 @@ void DoubleField::UpdateFromWidget(double d)
}
SetValueAt(Now(), d);
GetParentRow()->SetKeyframeOnAllFields(nullptr);
if (!ls->IsDragging() && kdc_ != nullptr) {
kdc_->SetNewKeyframes();
olive::UndoStack.push(kdc_);
kdc_ = nullptr;
}
}