summaryrefslogtreecommitdiff
path: root/grapher/Models/Options/ApplyOptions.cs
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-09-27 21:13:03 -0700
committerJacob Palecki <[email protected]>2020-09-27 21:13:03 -0700
commit5d8700a462b4798c02f4a73bc66d2a69a4920ae1 (patch)
tree3a2b71991a6efce65be9af0c303ec2b59bdebff4 /grapher/Models/Options/ApplyOptions.cs
parentSet tab order (diff)
parentMerge pull request #26 from a1xd/argcheck (diff)
downloadrawaccel-5d8700a462b4798c02f4a73bc66d2a69a4920ae1.tar.xz
rawaccel-5d8700a462b4798c02f4a73bc66d2a69a4920ae1.zip
Merge and fix write button
Diffstat (limited to 'grapher/Models/Options/ApplyOptions.cs')
-rw-r--r--grapher/Models/Options/ApplyOptions.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/grapher/Models/Options/ApplyOptions.cs b/grapher/Models/Options/ApplyOptions.cs
index c2ed498..51c80ea 100644
--- a/grapher/Models/Options/ApplyOptions.cs
+++ b/grapher/Models/Options/ApplyOptions.cs
@@ -89,14 +89,14 @@ namespace grapher.Models.Options
};
}
- public Vec2<AccelArgs> GetArgs()
+ public Vec2<AccelArgs> GetUpdatedArgs(ref /*readonly*/ Vec2<AccelArgs> last)
{
- var xArgs = OptionSetX.GenerateArgs();
+ var xArgs = OptionSetX.GenerateArgs(ref last.x);
return new Vec2<AccelArgs>
{
x = xArgs,
- y = ByComponentVectorXYLock.Checked ? xArgs : OptionSetY.GenerateArgs()
+ y = ByComponentVectorXYLock.Checked ? xArgs : OptionSetY.GenerateArgs(ref last.y)
};
}