summaryrefslogtreecommitdiff
path: root/grapher
diff options
context:
space:
mode:
authora1xd <[email protected]>2021-09-16 19:52:48 -0400
committera1xd <[email protected]>2021-09-23 22:36:18 -0400
commit915132d15ce4c1913d18adb917124acc727d4800 (patch)
tree8809163679a874e44a2baac58ffe0a8b7e2917ae /grapher
parentbroaden motivity fp_rep_range (diff)
downloadrawaccel-915132d15ce4c1913d18adb917124acc727d4800.tar.xz
rawaccel-915132d15ce4c1913d18adb917124acc727d4800.zip
fix - gui lut mode
AccelArgs::gain was not set from LutApplyOptions
Diffstat (limited to 'grapher')
-rw-r--r--grapher/Models/Options/AccelTypeOptions.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/grapher/Models/Options/AccelTypeOptions.cs b/grapher/Models/Options/AccelTypeOptions.cs
index d89f2d1..f079542 100644
--- a/grapher/Models/Options/AccelTypeOptions.cs
+++ b/grapher/Models/Options/AccelTypeOptions.cs
@@ -275,7 +275,6 @@ namespace grapher
Exponent.SetActiveValue(args.exponentPower);
Midpoint.SetActiveValue(args.midpoint);
LutPanel.SetActiveValues(args.data, args.length, args.mode);
- // TODO - use GainSwitch only?
LutApply.SetActiveValue(args.gain);
}
@@ -309,7 +308,9 @@ namespace grapher
public void SetArgs(ref AccelArgs args)
{
args.mode = AccelerationType.Mode;
- args.gain = GainSwitch.CheckBox.Checked;
+ args.gain = LutPanel.Visible ?
+ LutApply.ApplyType == LutApplyOptions.LutApplyType.Velocity :
+ GainSwitch.CheckBox.Checked;
if (DecayRate.Visible) args.decayRate = DecayRate.Field.Data;
if (GrowthRate.Visible) args.growthRate = GrowthRate.Field.Data;