Skip to content

Commit

Permalink
fix preset value with the "none" interpolation mode is actually appli…
Browse files Browse the repository at this point in the history
…ed (even using "go to" if interpolation time is 0)
  • Loading branch information
Guillaume Buisson committed May 21, 2024
1 parent 34644d3 commit fcba695
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/CustomVariables/CVGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ void CVGroup::setValuesToPreset(CVPreset* preset)
Parameter* p = dynamic_cast<Parameter*>(v->controllable);
if (p == nullptr) continue;
ParameterPreset* pp = preset->values.getParameterPresetForSource(p);
if (pp != nullptr) p->setValue(pp->parameter->value);
if (pp == nullptr) continue;
const ParameterPreset::InterpolationMode mode = pp->interpolationMode->getValueDataAsEnum<ParameterPreset::InterpolationMode>();
if (mode == ParameterPreset::NONE) continue;
p->setValue(pp->parameter->value);
}
}

Expand Down

0 comments on commit fcba695

Please sign in to comment.