diff options
| author | a1xd <[email protected]> | 2020-09-29 07:43:50 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2020-09-29 07:43:50 -0400 |
| commit | 9bb5616061d823fa3632b0d99ba177ac2de74ade (patch) | |
| tree | 9cc4f48bfedd64f46a3c391677be5c793c4af243 /grapher/Models/Options/ApplyOptions.cs | |
| parent | add wrapper optimization (diff) | |
| download | rawaccel-9bb5616061d823fa3632b0d99ba177ac2de74ade.tar.xz rawaccel-9bb5616061d823fa3632b0d99ba177ac2de74ade.zip | |
set invisible args to default values before write
Diffstat (limited to 'grapher/Models/Options/ApplyOptions.cs')
| -rw-r--r-- | grapher/Models/Options/ApplyOptions.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/grapher/Models/Options/ApplyOptions.cs b/grapher/Models/Options/ApplyOptions.cs index 51c80ea..c2ed498 100644 --- a/grapher/Models/Options/ApplyOptions.cs +++ b/grapher/Models/Options/ApplyOptions.cs @@ -89,14 +89,14 @@ namespace grapher.Models.Options }; } - public Vec2<AccelArgs> GetUpdatedArgs(ref /*readonly*/ Vec2<AccelArgs> last) + public Vec2<AccelArgs> GetArgs() { - var xArgs = OptionSetX.GenerateArgs(ref last.x); + var xArgs = OptionSetX.GenerateArgs(); return new Vec2<AccelArgs> { x = xArgs, - y = ByComponentVectorXYLock.Checked ? xArgs : OptionSetY.GenerateArgs(ref last.y) + y = ByComponentVectorXYLock.Checked ? xArgs : OptionSetY.GenerateArgs() }; } |