updated NodeInputs to use a standard value as well as keyframed values

Previously the non-keyframed value was stored as a static keyframe but this
introduced issues when an input was in a state of keyframes being enabled but
0 keyframes existing. Having a standard value makes much more sense.
This commit is contained in:
itsmattkc
2019-12-27 02:06:41 +11:00
parent 7a512cc540
commit e32376a8b7
9 changed files with 142 additions and 73 deletions
+2 -2
View File
@@ -350,7 +350,7 @@ QString TrackOutput::GetDefaultTrackName(TrackType type, int index)
bool TrackOutput::IsMuted() const
{
return muted_input_->get_value_at_time(0).toBool();
return muted_input_->get_standard_value().toBool();
}
bool TrackOutput::IsLocked() const
@@ -365,7 +365,7 @@ void TrackOutput::SetTrackName(const QString &name)
void TrackOutput::SetMuted(bool e)
{
muted_input_->set_override_value(e);
muted_input_->set_standard_value(e);
InvalidateCache(0, track_length());
}