diff options
| author | a1xd <[email protected]> | 2021-09-16 19:52:48 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2021-09-23 22:36:18 -0400 |
| commit | 915132d15ce4c1913d18adb917124acc727d4800 (patch) | |
| tree | 8809163679a874e44a2baac58ffe0a8b7e2917ae /grapher/Models | |
| parent | broaden motivity fp_rep_range (diff) | |
| download | rawaccel-915132d15ce4c1913d18adb917124acc727d4800.tar.xz rawaccel-915132d15ce4c1913d18adb917124acc727d4800.zip | |
fix - gui lut mode
AccelArgs::gain was not set from LutApplyOptions
Diffstat (limited to 'grapher/Models')
| -rw-r--r-- | grapher/Models/Options/AccelTypeOptions.cs | 5 |
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; |